Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- server = smtplib.SMTP('smtp.gmail.com', 587)
- server.starttls()
- server.login('gmailuser@gmail.com', 'gmailpassword)'
- server.sendmail('gmailuser@gmail.com', 'receiver@email.com', 'Hello, this is the email text')
- server.quit()
Add Comment
Please, Sign In to add comment