Skip to main content
Version: 4.3.0

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
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.
EnabledBoolValueSpecifies whether the activity is to be enabled or not. Only enabled activities are executed and validated.
DescriptionStringValueDescription of the activity.

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

Authentication

Authentication can be done either with basic or so-called modern authentication.

note

Currently, modern authentication can only be used with Microsoft Office 365.

Basic authentication

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

The outgoing SMTP-server. Can be either:

Bindable
PortIntegerValueThe SMTP-port number.
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

Modern authentication

important

When using modern authentication, the Server parameter listed under Basic authentication needs to be set to Auto:Modern-MicrosoftOffice365. The other parameters in that section can be disregarded.

note

Modern authentication requires either a client secret or a certificate. Consequently, it is enough to set one of the parameters Client secret or Certificate. If both are set, the certificate option is selected.

For more information, see Authentication in mail clients using Microsoft Office 365.

NameTypeDescription
Tenant IdActivityComplexValue of StringValueTenant Id of the Azure Active Directory.
Bindable
Client IdActivityComplexValue of StringValueThe identifier for the Azure AD client (application) used for authentication.
Bindable
Client secretPasswordValueThe client secret used to authenticate the client.
Bindable
Account nameStringValueThe account name of the user.
Bindable
CertificateCertificateValueThe certificate used to authenticate the client. Can be used instead of client secret.
Bindable

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.

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.