Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No emails - smtplib.SMTPServerDisconnected: Connection unexpectedly closed #227

Open
Backfire-FF opened this issue May 11, 2023 · 1 comment

Comments

@Backfire-FF
Copy link

I just installed Pi.Alert and run the update and got the message below:

Reporting...
    Formating report...
    Sending report by email...
Traceback (most recent call last):
  File "/root/pialert/back/pialert.py", line 1488, in <module>
    sys.exit(main())       
  File "/root/pialert/back/pialert.py", line 94, in main
    email_reporting()
  File "/root/pialert/back/pialert.py", line 1324, in email_reporting
    send_email (mail_text, mail_html)
  File "/root/pialert/back/pialert.py", line 1414, in send_email
    smtp_connection = smtplib.SMTP (SMTP_SERVER, SMTP_PORT)
  File "/usr/lib/python3.10/smtplib.py", line 255, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python3.10/smtplib.py", line 343, in connect
    (code, msg) = self.getreply()
  File "/usr/lib/python3.10/smtplib.py", line 405, in getreply
    raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed

What could be the problem? Any advice?
Thanks

@jokob-sk
Copy link

If you want to have things fixed or get help, you should switch to one of the forks. The main project has not been maintained for almost 2 years.
For example:
https://github.com/leiweibau/Pi.Alert
https://github.com/jokob-sk/Pi.Alert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants