Skip to content

Commit abd5c62

Browse files
committed
update sending emails tutorial
1 parent 62b175c commit abd5c62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

general/email-sender/email_sender_with_attachments.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
def send_mail(email, password, FROM, TO, msg):
17+
# initialize the SMTP server
1718
# in our case it's for Microsoft365, Outlook, Hotmail, and live.com
1819
server = smtplib.SMTP(host="smtp.office365.com", port=587)
1920
# connect to the SMTP server as TLS mode (secure) and send EHLO

0 commit comments

Comments
 (0)