I am working on a simple program with Python 3.4 on Windows 8.1, and being a newcomer to programming, I am a bit stumped.
When I send myself an email to my Godaddy office 365 account, the only thing I can see is the title "No Subject", (I would like to have something there.) I can see the From field which is my email address, and the rest is blank. Nothing in the body of the email. I figured I would ask someone who has more experience than I do as to what I am doing wrong. Here is my code, cleaned up a bit.
#Send Email import smtplib server=smtplib.SMTP('smtp.office365.com',587) server.starttls() server.login('mylogininfo','mypassword') server.sendmail('[email protected]','[email protected]',"This is a test Pyhton Email") I don't know if there is a better way of doing this but I am open to suggestions. Thanks Everyone.