BASH

SendGrid Send Email Script

SendGrid Send Email Script

Send EMAIL via SendGrid API using Shell Script We had a requirement to send the Emails via SendGrid using a shell script, SendGrid does expose their HTTP API’s. Below are some cURL examples for several basic use cases to get you sending email through SendGrid’s v3 Mail Send endpoint right away! 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.