Last active
January 24, 2017 21:18
-
-
Save DustinAlandzes/e1909fdd3a1ff9267da9e3e458e9e9be 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 | |
login = {"username": "[email protected]", "password":""} | |
mailgun = {"server": "smtp.mailgun.org", "port": 587} | |
def send_message_via_smtp(sender, reciever, msg): | |
smtp = smtplib.SMTP(mailgun["server"], mailgun["port"]) | |
smtp.login(login["username"], login["password"]) | |
smtp.sendmail(sender, reciever, msg) | |
send_message_via_smtp("[email protected]", "[email protected]", "i'm alive!") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment