Guest User

Untitled

a guest
Dec 24th, 2017
971
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import smtplib
  2.  
  3. server = smtplib.SMTP('smtp.gmail.com:587')
  4. server.ehlo()
  5. server.starttls()
  6. server.ehlo()
  7. server.login('mymail@gmail.com','password')
  8. server.sendmail('mymail@gmail.com','personsmail@gmail.com','message')
Add Comment
Please, Sign In to add comment