Created
December 17, 2015 21:03
-
-
Save james2doyle/5c529450c140c41c06f4 to your computer and use it in GitHub Desktop.
Test the mailgun API with HTTPIE
This file contains hidden or 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
#!/usr/bin/env bash | |
DOMAIN="example.com" | |
EMAIL="[email protected]" | |
http -a 'api:key-00000000000000000000000000000000' \ | |
-f POST "https://api.mailgun.net/v3/$DOMAIN/messages" \ | |
from="Excited User <postmaster@$DOMAIN>" \ | |
to="$EMAIL" \ | |
subject="Hello" \ | |
text="Your domain: $DOMAIN is working!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment