a guest Apr 20th, 2018 474 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import smtplib
- s = smtplib.SMTP("smtp.gmail.com")
- s.login("username", "password")
- msg = "From: firstname.lastname@example.org\r\nTo: email@example.com\r\nSubject: Testing 1 2 3\r\n\r\n"
- msg += "This is a test, only a test."
- s.sendmail("firstname.lastname@example.org", "email@example.com", msg)
RAW Paste Data