Official Plugins (Kuzzle v2.x)
Hermes Messenger v0.x
2

sendTemplatedEmail #

Sends a templated email using one of the registered Sendgrid accounts.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_/hermes/sendgrid/templated-email
Method: POST

Other protocols #

Copied to clipboard!
{
  "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 #

Copied to clipboard!
kourou hermes/sendgrid:sendTemplatedEmail -a account=<account name> --body '{
  "from": "<sender email>",
  "to": ["<recipient1 email>", "<recipient2 email>"],
    "templateId": "<template ID>",
  "templateData": {},
}'