Send Outlook Email Via Python? - Stack Overflow
stackoverflow.com › questions › 6332577Jun 13, 2011 · import win32com.client as win32 outlook = win32.dispatch ('outlook.application') mail = outlook.createitem (0) mail.to = 'to address' mail.subject = 'message subject' mail.body = 'message body' mail.htmlbody = 'html message body' #this field is optional # to attach a file to the email (optional): attachment = "path to the attachment" …
Send Outlook Email Via Python? - Stack Overflow
https://stackoverflow.com/questions/633257712.06.2011 · @Spencer Rathbun: thank you. The problem is this: my smtp server is not the same as my email -- hence, I need to channel my smtp through my internet provider (att), even though I am using a different email address (not att's) to send the email.Outlook is already configured to handle this. If there are other solutions (non-Outlook based) that will also support this, I'd be …