Created
November 20, 2019 15:36
-
-
Save icarrr/d1b4d6189583c1359fd7b967d8739ec9 to your computer and use it in GitHub Desktop.
Test send mail via API Sendgrid using curl
This file contains 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
curl --request POST --url https://api.sendgrid.com/v3/mail/send \ | |
--header 'authorization: Bearer API_KEY' \ | |
--header 'content-type: application/json' \ | |
--data '{"personalizations":[{"to":[{"email":"update me!", "name":"Orang Ganteng"}],"subject":"Hello!"}],"content": [{"type": "text/plain", "value": "Nice Works"}],"from":{"email":"sendgrid@localhost","name":"Sendgrid"}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment