Skip to main content
Version: 4.2.5

Send Mail

Description

Sends an e-mail message.

note

If a mail server returns the SMTP error "530 5.7.0 Must issue a STARTTLS command first", the activity will renegotiate the connection using STARTTLS and retry the send operation if StartTLSOption Retry was specified.

Assembly: iCore.Workflow.Activites
Category: Misc

Arguments

NameTypeDescription
AttachmentsIEnumerable<Attachment>The files to attach.
SubjectStringThe subject of the message.
MailBodyStringThe body text to be placed in the message.
ServerString

The SMTP server to use for sending the mail. Can be either:

  • A host name (example: server.com)
  • An IP-address (example: 192.168.0.0)
  • An auto configuration (auto:<well known mail server name>)

For more information, see Well-known mail servers.

PortInt32The SMTP server port. Default: 25.
UsernameStringThe user name used to log-in on to the server.
PasswordStringThe password used to log-in on to the server.
ToStringThe e-mail address of the recipient of the message. If there are multiple addresses, they are to be separated by ; (semicolon).
FromStringThe e-mail address of the sender of the message.
CcStringThe e-mail address of the CC recipient of the message. If there are multiple addresses, they are to be separated by ";" (semicolon).
BccStringThe e-mail address of the BCC recipient of the message. If there are multiple addresses, they are to be separated by ";" (semicolon).
Envelope IdStringThe Envelope Id to be included in the return message header.
NotifyDSNOptionsThe Delivery Status Notification requested for the message.
SegmentDSNSegmentThe Delivery Status Notification segment to return.
StartTlsOptionStartTlsOptionSpecifies how Start TLS will be used.
SSL/TLS versionSslVersionsSSL/TLS version to be used. More than one option can be selected. Default is TLS 1.3, TLS 1.2.

For more information, see General information about SSL and TLS.