SMTP binding spec

To setup SMTP binding create a component of type . See this guide 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 here.

  • create

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

  • emailFrom
  • emailCC
  • emailBCC
  • subject

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.

You can run Kafka locally using Docker image. To run without Docker, see the getting started guide here.

  1. {
  2. "operation": "create",
  3. "metadata": {
  4. "emailTo": "dapr-smtp-binding@example.net",
  5. "emailCC": "cc1@example.net; cc2@example.net",
  6. },
  7. "data": "Testing Dapr SMTP Binding"
  8. }

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