python send email from gmail

Posted: March 22, 2013 in python

found this easy post on how to do it. worked g8 on 1st try.

the only problem was that i didn’t understand where to put the SUBJECT.

so found these links:

http://www.velocityreviews.com/forums/t485760-re-subject-line-with-smtplib-sendmail.html

http://effbot.org/pyfaq/how-do-i-send-mail-from-a-python-script.htm

the message actually contains everything (from+to+subject+message)

but if you need HTML mail just use this post, it’s much better. also worked fine.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s