Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- msg = 'Testing to see if python mailer works'
- to = 'insanehf@hotmail.com'
- username = 'yougotowned123@gmail.com'
- password = 'lol123lol'
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- server.login(username, password)
- server.sendmail(user, to, msg)
- print "good job, you sent an email"
- server.quit()
Add Comment
Please, Sign In to add comment