Skip to content

Instantly share code, notes, and snippets.

@Xjs
Last active August 30, 2018 15:41
Show Gist options
  • Save Xjs/3ca8e488235cb7f2cc8ff60de5cef366 to your computer and use it in GitHub Desktop.
Save Xjs/3ca8e488235cb7f2cc8ff60de5cef366 to your computer and use it in GitHub Desktop.
import smtplib
msg = """From: <[email protected]>\r\nTo: <[email protected]>\r\n\r\nTest test test test"""
server = smtplib.SMTP('gmail-smtp-in.l.google.com')
server.set_debuglevel(1)
server.sendmail("[email protected]", ["[email protected]"], msg)
server.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment