-
Notifications
You must be signed in to change notification settings - Fork 10
To test sendgrid SMTP Email
Jignesh Greycube edited this page Nov 17, 2022
·
2 revisions
curl --request POST \ --url https://api.sendgrid.com/v3/mail/send \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"personalizations": [{"to": [{"email": "recipient@example.com"}]}],"from": {"email": "sendeexampexample@example.com"},"subject": "Hello, World!","content": [{"type": "text/plain", "value": "Heya!"}]}'
Replace YOUR_API_KEY