-
I have tested my SMTP configuration by using the value on a SMTP Tester to make sure the SMTP Server could be reached and the credentials worked. But when I test in netalertx is fails and I have tried various combinations and made sure that SMTP_PORT is set. I changed logging to trace and here is the results. Note it shows SMTP_PORT == 0, but it is configured. And I cannot find a setting for SMTP_REPORT_ON. This is installed in Home Assistant. 18:23:34 [2025-07-02 18:23:34-04:00] [Test] START Test: SMTP |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @jca001, Thanks a lot for the detailed log, this helps a lot. I guess the issue is the port, since if you check the code, there is an explicit check for the port set to 0. To debug I'd recommend:
SMTP_REPORT_ON - you can search for these setting names in the Settings page (filter at the bottom of the page) Edit: added 4 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply.
I searched for SMTP_REPORT_ON and it was not found. The closet match is SMTP_REPORT_TO, which is set. |
Beta Was this translation helpful? Give feedback.
I finally got it to work. It was a typo for the SMTP_USER. There was a '.' where there should have been a '@'.. Same for the SMTP_REPORT_FROM.
When I would test using a WEB SMTP Tester, I would enter everything correctly.
I was able to access the container and added some more logging in the email_smtp.py file which helped me see my typo. I also found out why the SMTP_PORT == 0 was misleading. Look around line 193, the first line after the else:. The mylog message should be SMTP_PORT != 0.
I also tried increasing the debuglevel for the smtp_connection, but it did not show the message from the email Server.
Thanks for all your help.