SMTP binding spec

To setup SMTP binding create a component of type . See on how to create and apply a binding configuration.

Warning

The example configuration shown above, contain a username and password as plain-text strings. It is recommended to use a secret store for the secrets as described .

  • create

You can specify any of the following optional metadata properties with each request:

  • emailFrom
  • emailCC
  • emailBCC
  • subject
  • priority

When sending an email, the metadata in the configuration and in the request is combined. The combined set of metadata must contain at least the emailFrom, emailTo and subject fields.

Example:

  1. {
  2. "operation": "create",
  3. "metadata": {
  4. "emailTo": "dapr-smtp-binding@example.net",
  5. "subject": "Email subject",
  6. "priority: "1"
  7. },
  8. "data": "Testing Dapr SMTP Binding"
  9. }

The emailTo, emailCC and fields can contain multiple email addresses separated by a semicolon.