Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement