#!/usr/bin/python
import smtplib
fromAddress='email@gmail.com'
toAddress='ltrappett@gmail.com'
msg='To another email address.'
username='email@gmail.com'
password='specific use password'
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username, password)
server.sendmail(fromAddress, toAddress, msg)
server.quit()
No comments:
Post a Comment