caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
10.94k stars 385 forks source link

Problem with mail as id #996

Closed an1ketos closed 8 months ago

an1ketos commented 8 months ago

:question: Question Hi

I'm not able to send notification mail, I've got an error:

Connection error while submitting email to ssl.ovh.net. Reason: [Errno -2] Name or service not known

The URL I use:

mailtos://def.ghi?user=abc@def.ghi&pass=jkl&smtp=ssl.ovh.net&port=465&mode=ssl&from=abc@def.ghi&to=rst@uvw.xyz

I tried with cli and -vvvv option:

root@changedetection:/app# apprise -vvvv -t "Test" -b "Email" "mailtos://def.ghi?user=abc@def.ghi&pass=jkl&smtp=ssl.ovh.net&port=465&mode=ssl&from=abc@def.ghi&to=rst@uvw.xyz" root@changedetection:/app# cat test.txt 2023-11-09 11:55:10,325 - TRACE - Loaded language en 2023-11-09 11:55:10,326 - DEBUG - Language set to en 2023-11-09 11:55:10,331 - TRACE - E-Mail URL mailtos://def.ghi?user=abc@def.ghi&pass=jkl&smtp=ssl.ovh.net&port=465&mode=ssl&from=abc@def.ghi&to=rst@uvw.xyz unpacked as: user="abc@def.ghi" password="jkl" port="465" host="def.ghi" fullpath="None" path="None" query="None" schema="mailtos" url="mailtos://def.ghi" qsd="{'user': 'abc@def.ghi', 'pass': 'jkl', 'smtp': 'ssl.ovh.net', 'port': '465', 'mode': 'ssl', 'from': 'abc@def.ghi', 'to': 'rst@uvw.xyz'}" qsd+="{}" qsd-="{}" qsd:="{}" secure="True" verify="True" targets="['rst@uvw.xyz']" secure_mode="ssl" from_addr="abc@def.ghi" smtp_host="ssl.ovh.net" headers="{}" 2023-11-09 11:55:10,331 - DEBUG - Loaded E-Mail URL:mailtos://abc:****@def.ghi/rst%40uvw.xyz?format=html&overflow=upstream&rto=4.0&cto=15&verify=yes&smtp=ssl.ovh.net&mode=ssl&from=abc%40def.ghi 2023-11-09 11:55:10,331 - DEBUG - Email From: abc@def.ghi 2023-11-09 11:55:10,331 - DEBUG - Email To: rst@uvw.xyz 2023-11-09 11:55:10,331 - DEBUG - Login ID: abc@def.ghi 2023-11-09 11:55:10,331 - DEBUG - Delivery: ssl.ovh.net:465 2023-11-09 11:55:10,332 - DEBUG - Connecting to remote SMTP server... 2023-11-09 11:55:10,332 - DEBUG - Securing connection with SSL... 2023-11-09 11:55:10,376 - WARNING - Connection error while submitting email to ssl.ovh.net. Reason: [Errno -2] Name or service not known

It's as if the "Loaded E-Mail URL" only use the first part of my id instead of the full mail address.

Is there a mistake on my part or is there a bug?

Thanks in advance.

an1ketos commented 8 months ago

Ok, excuse me but i was doing some sh*t... It's ssl0.ovh.net, and not ssl.ovh.net! Dozens of tests changing the syntax and the error was the interface between chair and keyboard... Enormous facepalm.

I close the topic.

caronc commented 8 months ago

Glad you figured it out 🙂