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