Sends a new email from the tenant's connected mailbox. The configuration must have SendEnabled set to true. The sender (From) is determined by the email configuration. At least one To recipient and either HtmlBody or PlainTextBody is required. Attachments are supported via base64-encoded content.
Requires: Create on Mailbox.
Parameters
| Name | Type | Description |
|---|---|---|
| tenant* | path string | The Tenant.Code |
The Tenant.Code |
||
| code* | path string | |
Request Body*
{
"subject": "string",
"htmlBody": "string",
"plainTextBody": "string",
"to": [
{
"email": "...",
"name": "..."
}
],
"cc": [
{
"email": "...",
"name": "..."
}
]
}
Responses
200 OK
202 Accepted
400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json
404 Not Found