dgtlmoon / changedetection.io

The best and simplest free open source web page change detection, website watcher, restock monitor and notification service. Restock Monitor, change detection. Designed for simplicity - Simply monitor which websites had a text change for free. Free Open source web page change detection, Website defacement monitoring, Price change notification
https://changedetection.io
Apache License 2.0
15.85k stars 885 forks source link

SMTP Notification Warning: Connection error while submitting email to (server address). Reason: SMTP AUTH extension not supported by server. #2342

Closed freddyb closed 2 months ago

freddyb commented 2 months ago

Describe the bug Looks like the SMTP code doesn't handle all mail servers. See exact steps below.

Version v0.45.22

To Reproduce Steps to reproduce the behavior:

  1. Set up a new change detection entry.A
  2. When typing the URL go to ""Edit > Watch"
  3. In the notifications tab, type in a mailtos address to allow sending email
  4. Click on "Send test notification"
  5. Check Notification debug logs
    2024/05/02 13:06:37,000 - SENDING - null
    2024-05-02 13:06:37,804 - WARNING - Connection error while submitting email to smtp.mailbox.org. Reason: SMTP AUTH extension not supported by server.
    2024-05-02 13:06:37,786 - DEBUG - Applying user credentials...
    2024-05-02 13:06:37,704 - DEBUG - Connecting to remote SMTP server...
    2024-05-02 13:06:37,703 - DEBUG - Delivery: smtp.mailbox.org:25
    2024-05-02 13:06:37,703 - DEBUG - Login ID: ...
    2024-05-02 13:06:37,703 - DEBUG - Email To: ...
    2024-05-02 13:06:37,703 - DEBUG - Email From: ....
    2024-05-02 13:06:37,703 - DEBUG - Loaded E-Mail URL: mailto://...:****@smtp.mailbox.org/?format=text&overflow=upstream&rto=4.0&cto=15&verify=yes
    2024-05-02 13:06:37,703 - INFO - Applying Custom Defaults
    2024/05/02 13:05:48,000 - SENDING - null

Expected behavior I was expecting a successful SMTP connection and a test notification

Additional context My email address has a @ sign in the login field. I'm currently escaping it with URL-encoding like so mailtos://username%40address:password@smtpserver. Could be related.