Last active
August 30, 2018 15:41
-
-
Save Xjs/3ca8e488235cb7f2cc8ff60de5cef366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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