ypm-llc / postgrid

MIT License
0 stars 0 forks source link

Similar API specification to SendGrid #3

Open ytnobody opened 1 year ago

ytnobody commented 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"}}'
ytnobody commented 1 year ago

API Spec is here. https://docs.sendgrid.com/api-reference/mail-send/mail-send