Skip to main content

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

FieldRequiredDescription
NameOptionalName of the component.
DescriptionOptionalDescription of the component.
SMTP ConnectionOptionalThe SMTP server resource to send through.
From (override)OptionalSender override. Falls back to the input from, then the SMTP resource default.

Advanced

FieldRequiredDescription
Fail on Partial RejectOptionalFail the activity when some recipients are rejected; otherwise report them in rejected. Defaults to cleared.

Input

FieldRequiredData TypeDescription
toOptionalArrayPrimary recipients.
ccOptionalArrayCarbon-copy recipients.
bccOptionalArrayBlind carbon-copy recipients.
fromOptionalStringSender override. Falls back to the activity or resource default.
replyToOptionalStringReply-to address.
subjectOptionalStringEmail subject.
messageOptionalStringPlain-text email body.
htmlOptionalStringHTML email body.
headersOptionalObjectAdditional custom headers as key-value pairs.
attachmentsOptionalArrayAttachments to include.

Supplying both message and html sends the email as multipart/alternative.

attachments

FieldRequiredData TypeDescription
contentBase64RequiredStringBase64-encoded bytes.
nameOptionalStringAttachment filename.
contentTypeOptionalStringAttachment content type.
cidOptionalStringContent-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.

FieldData TypeDescription
sentBooleanWhether the email was sent.
messageIdStringMessage-ID assigned by the server or client.
acceptedArrayRecipients the server accepted.
rejectedArrayRejected recipients, present on a partial send.