Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- fromaddr = 'anye...@gmail.com'
- toaddrs = 'myfr...@gmail.com'
- msg = 'some one is using this app'
- username = 'anyem...@gmail.com'
- password = 'password'
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- server.login(username,password)
- server.sendmail(fromaddr, toaddrs, msg)
- server.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement