Guest User

Untitled

a guest
Jun 19th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import smtplib
  2.  
  3. server = smtplib.SMTP('smtp.gmail.com', 587)
  4. server.starttls()
  5. server.login('gmailuser@gmail.com', 'gmailpassword)'
  6.  
  7. server.sendmail('gmailuser@gmail.com', 'receiver@email.com', 'Hello, this is the email text')
  8. server.quit()
Add Comment
Please, Sign In to add comment