Created
April 4, 2013 18:25
-
-
Save jacobian/5312800 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 requests | |
requests.post( | |
'https://api.mailgun.net/v2/%s/messages' % MAILGUN_DOMAIN | |
auth = ("api", MAILGUN_API_KEY, | |
data = { | |
"from": from_address, | |
"to": to_address | |
"subject": subject_line | |
"text": body_plain, | |
"html": body_html, | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment