Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import smtplib
- >>> gmail_smtp='74.125.127.109'
- >>> handle = smtplib.SMTP(gmail_smtp, 25)
- >>> handle.ehlo()
- (250, 'mx.google.com at your service, [58.246.22.38]\nSIZE 35882577\n8BITMIME\nS
- TARTTLS\nENHANCEDSTATUSCODES')
- >>> handle.starttls()
- (220, '2.0.0 Ready to start TLS')
- >>> handle.login('lxneng@gmail.com', 'xxxxxxx')
- (235, '2.7.0 Accepted')
- >>> handle.sendmail('lxneng@gmail.com', ['lxneng@gmail.com'],'''From:lxneng@gmai
- l.com\r\nTo:lxneng@gmail.com\r\nSubject:Hello\r\nHahadkfjsflsdjflsd\r\n''')
- {}
Add Comment
Please, Sign In to add comment