Skip to main content
Version: 4.2.5

Send e-mail

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.

Impact on Adapterflow data stream: No

In parameters

Activity

NameTypeDescription
EnabledBoolValueSpecifies whether the activity is to be enabled or not. Only enabled activities are executed and validated.
DescriptionStringValueDescription of the activity.
NameStringValueName of the activity. The name has to be unique in the workflow. The name is used as identifier of the activity in activity binding.

Mail properties 

NameTypeDescription
Data destinationMailStreamDestinationThe destination of the input data for the mail message. If this parameter is set to Mailbody, you must specify the codepage of the data.
Bindable
AttachmentsActivityComplexValue of FilePathValueThe attachments of the e-mail. If there are multiple files, the must be separated with ; (semicolon).
Bindable
Body textActivityComplexValue of StringValueThe body text to be placed in the message.
Bindable
SubjectActivityComplexValue of StringValueThe subject of the message.
Bindable
Data codepageCodePageIDValueThe codepage of the indata.

SMTP server

NameTypeDescription
UsernameStringValueThe username for login on the SMTP-server.
ServerStringValue

The outgoing SMTP-server. 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.

Bindable
PortIntegerValueThe SMTP-port number.
Bindable
PasswordPasswordValueThe password for login on the SMTP-server.
Bindable
StartTLS optionStartTlsOptionSpecifies how the StartTLS command will be used. When set to 'Retry', the StartTLS command will only be used if the initial connection fails.
Bindable
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.
Bindable

Addresses

NameTypeDescription
ToActivityComplexValue of StringValueThe e-mail address of the recipient of the message. If there are multiple addresses, they are to be separated by ; (semicolon).
Bindable
FromActivityComplexValue of StringValueThe e-mail address of the sender of the message.
Bindable

Out parameters

Standard

NameTypeDescription
Body text OutStringValueThe body text sent in the message.

Note: This parameter only contains the value from the parameter Body text above. If the parameter Data destination is set to Mailbody, this property will be empty.
Subject OutStringValueThe subject of the message sent.
Attachments OutStringValueThe attachments, separated with semicolon, of the message sent.