Fix send email

This commit is contained in:
2026-02-06 19:30:03 +03:00
parent a645bb5e9e
commit 098d60f0a7
+1 -1
View File
@@ -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)