We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b175c commit abd5c62Copy full SHA for abd5c62
general/email-sender/email_sender_with_attachments.py
@@ -14,6 +14,7 @@
14
15
16
def send_mail(email, password, FROM, TO, msg):
17
+ # initialize the SMTP server
18
# in our case it's for Microsoft365, Outlook, Hotmail, and live.com
19
server = smtplib.SMTP(host="smtp.office365.com", port=587)
20
# connect to the SMTP server as TLS mode (secure) and send EHLO
0 commit comments