-
-
Save emadshanab/5399a249b4429d75dc3c4db767b3dffc 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