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.
{
"operation": "create",
"metadata": {
"emailTo": "dapr-smtp-binding@example.net",
"emailCC": "cc1@example.net; cc2@example.net",
},
"data": "Testing Dapr SMTP Binding"
}
The emailTo
, and emailBCC
fields can contain multiple email addresses separated by a semicolon.