how to Send mail with attachment from your outlook account using Python

Published: 28/08/2019
how to Send mail with attachment from your outlook account using Python
Source: STACKOVERFLOW.COM

i have tried below code to send attachment, but file is not sending , only content is sending. please help. SERVER = "smtp.example.com" FROM = "yourEmail@example.com" TO = ["listOfEmails"] # must be a list enter code here SUBJECT = "Subject" TEXT = "Your Text" # Prepare actual message message = """From: %s\r\nTo: %s\r\nSubject: %s\r\n\ %s """ % (FROM, ", ".join(TO), SUBJEC

Read more
Related news
Comment
FACEBOOK