Update app.py
Browse files
app.py
CHANGED
@@ -54,8 +54,8 @@ def send_email(subject, body, sender, recipients, password):
|
|
54 |
msg['To'] = ', '.join(recipients)
|
55 |
|
56 |
# with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp_server:
|
57 |
-
with smtplib.SMTP_SSL('smtp.gmail.com', 587) as smtp_server:
|
58 |
-
|
59 |
|
60 |
smtp_server.login(sender, password)
|
61 |
smtp_server.sendmail(sender, recipients, msg.as_string())
|
|
|
54 |
msg['To'] = ', '.join(recipients)
|
55 |
|
56 |
# with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp_server:
|
57 |
+
# with smtplib.SMTP_SSL('smtp.gmail.com', 587) as smtp_server:
|
58 |
+
with smtplib.SMTP_SSL('smtp.gmail.com', 25) as smtp_server:
|
59 |
|
60 |
smtp_server.login(sender, password)
|
61 |
smtp_server.sendmail(sender, recipients, msg.as_string())
|