Send Email
Send Email sends a message through an SMTP resource. Recipients, subject, body, and attachments are all mapped on the Input tab.
The sender address can come from three places. The input from is used if set, otherwise
the From (override) configured here, otherwise the Default From on the SMTP
resource.
The output reports recipients individually. Fail on Partial Reject decides whether a
send where some recipients were rejected fails the activity or succeeds with those
recipients listed in rejected.
The activity has four tabs: Configuration, Advanced, Input, and Output.
Configuration
| Field | Required | Description |
|---|---|---|
| Name | Optional | Name of the component. |
| Description | Optional | Description of the component. |
| SMTP Connection | Optional | The SMTP server resource to send through. |
| From (override) | Optional | Sender override. Falls back to the input from, then the SMTP resource default. |
Advanced
| Field | Required | Description |
|---|---|---|
| Fail on Partial Reject | Optional | Fail the activity when some recipients are rejected; otherwise report them in rejected. Defaults to cleared. |
Input
| Field | Required | Data Type | Description |
|---|---|---|---|
| to | Optional | Array | Primary recipients. |
| cc | Optional | Array | Carbon-copy recipients. |
| bcc | Optional | Array | Blind carbon-copy recipients. |
| from | Optional | String | Sender override. Falls back to the activity or resource default. |
| replyTo | Optional | String | Reply-to address. |
| subject | Optional | String | Email subject. |
| message | Optional | String | Plain-text email body. |
| html | Optional | String | HTML email body. |
| headers | Optional | Object | Additional custom headers as key-value pairs. |
| attachments | Optional | Array | Attachments to include. |
Supplying both message and html sends the email as multipart/alternative.
attachments
| Field | Required | Data Type | Description |
|---|---|---|---|
| contentBase64 | Required | String | Base64-encoded bytes. |
| name | Optional | String | Attachment filename. |
| contentType | Optional | String | Attachment content type. |
| cid | Optional | String | Content-ID for an inline image. |
An entry with a cid is embedded inline as multipart/related, so it can be referenced
from the HTML body as <img src="cid:...">.
Output
The activity returns an emailResult object.
| Field | Data Type | Description |
|---|---|---|
| sent | Boolean | Whether the email was sent. |
| messageId | String | Message-ID assigned by the server or client. |
| accepted | Array | Recipients the server accepted. |
| rejected | Array | Rejected recipients, present on a partial send. |