mirror of
https://github.com/lorsanstand/Aether.git
synced 2026-06-19 12:05:16 +03:00
Fix send email
This commit is contained in:
@@ -35,7 +35,7 @@ class EmailClient:
|
||||
msg.attach(MIMEText(html, "html", "utf-8"))
|
||||
msg.attach(MIMEText(body, "plain", "utf-8"))
|
||||
|
||||
with smtplib.SMTP(settings.SMTP_SERVER, settings.SMTP_PORT) as smtp:
|
||||
with smtplib.SMTP_SSL(settings.SMTP_SERVER, settings.SMTP_PORT) as smtp:
|
||||
if not settings.MODE == "DEV":
|
||||
smtp.starttls()
|
||||
smtp.login(settings.SMTP_EMAIL, settings.SMTP_PASS)
|
||||
|
||||
Reference in New Issue
Block a user