sendTemplatedEmail #
Sends a templated email using one of the registered Sendgrid accounts.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/hermes/sendgrid/templated-email
Method: POST
Other protocols #
{
"controller": "hermes/sendgrid",
"action": "sendTemplatedEmail",
"account": "<account name>",
"body": {
"to": ["<recipient1 email>", "<recipient2 email>"],
"templateData": {
// Template placeholders values
},
"templateId": "<template ID>",
"from": "<sender email>", // optional
}
}
Kourou #
kourou hermes/sendgrid:sendTemplatedEmail -a account=<account name> --body '{
"from": "<sender email>",
"to": ["<recipient1 email>", "<recipient2 email>"],
"templateId": "<template ID>",
"templateData": {},
}'
Edit this page on Github(opens new window)