Skip to content

Instantly share code, notes, and snippets.

@sendgrid-gists
Last active May 11, 2016 17:43
Show Gist options
  • Save sendgrid-gists/648474f193631872903033ed626fa72b to your computer and use it in GitHub Desktop.
Save sendgrid-gists/648474f193631872903033ed626fa72b to your computer and use it in GitHub Desktop.
"Hello World" for email, using SendGrid with cURL.
curl -X POST https://api.sendgrid.com/api/mail.send.json \
-H "Authorization: Bearer SENDGRID_APIKEY" \
-d "to=test@sendgrid.com" \
-d "from=you@youraddress.com" \
-d "subject=Sending with SendGrid is Fun" \
-d "html=and easy to do anywhere, even with cURL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment