Open ytnobody opened 1 year ago
FYI: https://docs.sendgrid.com/ja/for-developers/sending-email/api-getting-started#api_1
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":"john.doe@example.com","name":"John Doe"}],"subject":"Hello, World!"}],"content": [{"type": "text/plain", "value": "Heya!"}],"from":{"email":"sam.smith@example.com","name":"Sam Smith"},"reply_to":{"email":"sam.smith@example.com","name":"Sam Smith"}}'
API Spec is here. https://docs.sendgrid.com/api-reference/mail-send/mail-send
FYI: https://docs.sendgrid.com/ja/for-developers/sending-email/api-getting-started#api_1