Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Sending email from Web.de failed #78

Closed
duracotton opened this issue Jun 7, 2021 · 1 comment
Closed

Sending email from Web.de failed #78

duracotton opened this issue Jun 7, 2021 · 1 comment

Comments

@duracotton
Copy link

duracotton commented Jun 7, 2021

Using smtp.web.de and port 587 resulted in

[ERROR] Couldn't send mail: SMTP AUTH extension not supported by server.

When the following is added to alert.py:
import smtplib, ssl
and

def send_mail(msg: str) -> None:
 ...
    else:
        with smtplib.SMTP(settings.SERVER, settings.PORT)as smtp:
            smtp.starttls(context=ssl.create_default_context())
            smtp.login(settings.SENDER, settings.PASSWORD)
            smtp.send_message(mail)

it's working.

@sibalzer
Copy link
Owner

sibalzer commented Jun 7, 2021

fixed in v3.0.0 see #82

@sibalzer sibalzer closed this as completed Jun 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants