Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import email
- import smtplib
- fromaddr = "youraddress@gmail.com"
- toaddr = "toaddress@domain.com"
- msg = "Content of your email message."
- username = "gmaillogin"
- password = "yourpassword"
- server.smtplib.SMTP("smtp.gmail.com:587")
- server.starttls()
- server.login(username, password)
- server.sendmail(fromaddr, toaddr, msg)
- server.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement