Guest User

Untitled

a guest
Jan 25th, 2018
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. >>> import smtplib
  2. >>> gmail_smtp='74.125.127.109'
  3. >>> handle = smtplib.SMTP(gmail_smtp, 25)
  4. >>> handle.ehlo()
  5. (250, 'mx.google.com at your service, [58.246.22.38]\nSIZE 35882577\n8BITMIME\nS
  6. TARTTLS\nENHANCEDSTATUSCODES')
  7. >>> handle.starttls()
  8. (220, '2.0.0 Ready to start TLS')
  9. >>> handle.login('lxneng@gmail.com', 'xxxxxxx')
  10. (235, '2.7.0 Accepted')
  11. >>> handle.sendmail('lxneng@gmail.com', ['lxneng@gmail.com'],'''From:lxneng@gmai
  12. l.com\r\nTo:lxneng@gmail.com\r\nSubject:Hello\r\nHahadkfjsflsdjflsd\r\n''')
  13. {}
Add Comment
Please, Sign In to add comment