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

sendEmail #

Sends an email using one of the registered Sendgrid accounts.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/_/hermes/sendgrid/email
Method: POST

Other protocols #

{
  "controller": "hermes/sendgrid",
  "action": "sendEmail",
  "account": "<account name>",
  "body": {
    "to": ["<recipient1 email>", "<recipient2 email>"],
    "subject": "<email subject>",
    "html": "<email body>",
    "from": "<sender email>", // optional
  }
}

Kourou #

kourou hermes/sendgrid:sendEmail -a account=<account name> --body '{
  "from": "<sender email>",
  "to": ["<recipient1 email>", "<recipient2 email>"],
  "subject": "<email subject>",
  "html": "<email body>",
}'