Skip to content

Instantly share code, notes, and snippets.

@vivianspencer
Created September 2, 2021 06:41
Show Gist options
  • Save vivianspencer/bee32daa7aa2e719f1d9285543e96e31 to your computer and use it in GitHub Desktop.
Save vivianspencer/bee32daa7aa2e719f1d9285543e96e31 to your computer and use it in GitHub Desktop.
Mailgun API Template Send
curl -s --user 'api:API_KEY' \
https://api.mailgun.net/v3/DOMAIN/messages \
-F from='FROM NAME <FROM EMAIL>' \
-F h:Reply-To='REPLY TO' \
-F subject='SUBJECT LINE' \
-F template='TEMPLATE ID' \
-F o:deliverytime='DELIVERY TIME' \
-F to='RECIPIENT EMAIL' \
-F v:fname='RECIPIENT NAME'
@vivianspencer
Copy link
Author

Date/Time should be formatted according to the following specs:
RFC 2882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment