Skip to content

Instantly share code, notes, and snippets.

@DustinAlandzes
Last active January 24, 2017 21:18
Show Gist options
  • Save DustinAlandzes/e1909fdd3a1ff9267da9e3e458e9e9be to your computer and use it in GitHub Desktop.
Save DustinAlandzes/e1909fdd3a1ff9267da9e3e458e9e9be to your computer and use it in GitHub Desktop.
import smtplib
login = {"username": "pibot@mg.n-compass.tv", "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("pibot@n-compass.biz", "name@ncmpass.biz", "i'm alive!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment