Skip to content

Instantly share code, notes, and snippets.

@lussier
Last active December 15, 2015 03:19
Show Gist options
  • Save lussier/5193791 to your computer and use it in GitHub Desktop.
Save lussier/5193791 to your computer and use it in GitHub Desktop.
Send email using MailGun
# 1. API-Key
# 2. Application Name
# 3. From (email address)
# 4. To (email address)
# 5. Subjet line
# 6. Message body
curl -s --user api:key-'$1' \
https://api.mailgun.net/v2/$2.mailgun.org/messages \
-F from='$3'\
-F to='$4'\
-F subject='$5' \
-F text='$6';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment