Send a custom email
The action is used to send emails whose recipients, subject, and content can be freely configured. The events on which the action can be embedded are listed in the table in the Actions chapter.
If a standard email sent to people who have active tasks on the workflow instance is sufficient, the Send a standard email action can be used instead.
The action is executed in "Pending in transaction" mode, i.e. its execution is postponed until the transaction is completed. The action execution modes are described in the Sequence of action execution chapter. For more information, see this article on our technical blog.
Basic configuration
The Basic tab of the Properties panel contains settings shared by every action in an automation: the Active toggle, the Action type field, the Documentation field, the Use action template toggle (when enabled, the action takes its configuration from the selected action template defined in the process), the Execution condition section (decides whether the action always runs or only when a custom rule is met), and the Runtime error handling section (the message and numeric error code returned when the action fails). Since these settings are not unique to the Send a custom email action, they are described in detail in the Actions chapter.

Advanced configuration
The Advanced tab contains fields specific to this action, grouped into the following sections:
- Recipients, CC Recipients, and BCC Recipients – the recipients of the message,
- Message content – the template, subject, sender, and content of the message,
- Instance visibility – the template elements displayed in the message,
- Attachments – the workflow instance attachments added to the message,
- Settings – additional sending settings.
Fields with the fx button allow the value to be supplemented with dynamic data. The Information on how variables work, as well as a list of variables, can be found in the Variables chapter.
Recipients

The section allows you to specify the recipients of the message. Each way of specifying recipients is enabled with a separate toggle – its configuration fields appear only after the toggle is switched on. Several ways can be enabled at the same time.
- Predefined – allows users working with the workflow instance to be designated as recipients. When the toggle is switched on, a selection field with the following options is available:
- Author – the author of the workflow instance (selected by default),
- Assigned people – users who have tasks on the workflow instance,
- Assigned CC task people – users who have CC tasks on the workflow instance,
- All assigned people – users who have tasks on the workflow instance (either direct or CC).
- Always to (people) – the Separate multiple logins by semicolon field, in which user logins are entered in UPN or NetBIOS format. Using the provided login, the action loads the email address saved for this user in the WEBCON users list (Email column).
- Always to (email address) – the Separate multiple addresses by semicolon field, in which the email addresses of the recipients are entered. The message will be sent to each of the provided addresses.
- Always to (people) – a selection list used to search for and select users or groups. The action loads the email addresses based on the data saved for these users in the WEBCON users list (Email column).
- Dynamic – the Form field field allows you to select a form field or an item list column from which the recipient logins are loaded. Using the provided login, the action loads the email address saved for this user in the WEBCON users list (Email column).
- Selecting addresses by SQL/CAML query – allows the list of recipients to be defined with a query. When the toggle is switched on, the following are available:
- the Data source field – the data source on which the query is run. For the SharePoint, WEBCON users, Domain users, and custom data sources, specify the column containing user logins. For other data sources, the value is loaded from the first column of every row.
- the query field – the first column returned by the query must contain
loginorlogin#name. Multiple recipients may be separated by semicolons or returned in separate rows. Using the provided login, the action loads the email address saved for this user in the WEBCON users list (Email column).
- Send to substitutes – when the checkbox is selected, the message is also sent to the users who are currently substituting for the recipients.
CC Recipients
The section allows you to specify the recipients who will receive a copy of the message (CC). The ways of specifying recipients and their fields are the same as in the Recipients section. The Send to CC substitutes checkbox allows the copy of the message to be sent also to the users who are currently substituting for the CC recipients.
CC Recipients are the recipients of a copy of the email message – they should not be confused with the Assigned CC task people option, which designates users who have CC tasks on the workflow instance.
BCC Recipients
The section allows you to specify the recipients of a blind copy of the message (BCC) – their addresses are not visible to the other recipients. The ways of specifying recipients and their fields are the same as in the Recipients section. The section does not contain a checkbox for substitutes.
Message content

The section allows you to define the content of the email message.
-
Template – allows you to select a predefined message template or use the default template (the <Default> option, selected by default). The list also contains the <None> option.
-
Subject – the subject of the message.
-
Sender – the email address of the sender, entered in one of two formats:
- an email address, e.g.
john.smith@webcon.com, - a display name and an email address, e.g.
John Smith <john.smith@webcon.com>.
The appropriate form of the address can be prepared in the E-mail picker window, opened with the button next to the field label. The window contains the E-mail address and Display name fields. If the Sender field is left empty, the sender address from the template is used, and if it is also missing – the sender address of the standard email message.
Depending on the global notification settings, the message "The message sender is configured in the global notification settings." may be displayed below the Sender field.
If the Allow "Send as" option is checked in the Configuration of sending notifications, the email account provided in the Sender field is used to send the message. If, despite the option being checked, the field remains empty, the message is sent using the account entered as the sender in the configuration of the selected email template or – when it is also blank – the account entered in the global configuration of sending notifications. The account address must be entered in the
john.smith@webcon.comformat, and the value entered as the display name is ignored. The Send as permissions must be configured for the account used for sending emails.infoFor more information, see this article on our technical blog.
- an email address, e.g.
-
Reply to – the address to which replies to the message will be sent. The address format is the same as in the Sender field, and its form can be prepared in the E-mail picker window.
-
Title – the title of the message header.
-
Subtitle – the text displayed under the title in the message header.
-
Message content – the content of the message is edited in fullscreen mode, opened with the Open configuration in full view button. The view contains the Content section with a mode switch in the upper right corner:
- Visual editing mode – displays the content of the message in formatted form (the default mode),
- HTML editing mode – allows the content of the message to be defined in HTML. In this mode, the Properties panel with the Functions, Values, Objects, and Parameters tabs is available on the right, allowing dynamic values to be inserted into the content.
The Return button leads back to the action configuration.
Instance visibility

The section allows you to specify which template elements will be displayed in the message. Each field has the same options:
- From template – the visibility of the element depends on the template settings (selected by default),
- Visible – the element is displayed in the message,
- Hidden – the element is not displayed in the message.
- Outlook Add-In – the workflow instance identifier for the Outlook Add-In, added at the beginning of the message subject.
- Site link – a link to the WEBCON site.
- Instance link – a link to the workflow instance for which the message is sent.
- Fields list – a list of form fields of the workflow instance.
- System fields list – a list of system fields of the workflow instance (signature, author, creation date).
- Recipients list – a list of the original recipients of the message.
- Task details – the content defined in the Task creation tab of the transition path.
Attachments
The section allows you to specify whether and which workflow instance attachments will be added to the message.
- Attachments – the way attachments are sent:
- Do not send – no attachment is added to the message (selected by default),
- Send all – all attachments of the workflow instance are added to the message,
- Send last – only the most recently added attachment of the workflow instance is added to the message,
- SQL query – attachments are selected based on the query entered in the SQL query field.
- SQL query – a field visible when the SQL query mode is selected. The query should return the attachment identifiers in a column named
ATT_IDorID.
Settings

The section allows you to configure additional settings for sending the message.
-
Send – defines how the message is sent by the system:
- Wait for sending confirmation – the automation finishes successfully once a connection with the sending mail server is established correctly and the server accepts the request to send the message to the specified address. This is not a confirmation that the recipient received the message.
- Add to sending queue – the message is added to the sending queue after all actions of the automation are completed without errors. The message is physically sent when it reaches the first position in the queue. A possible sending error does not affect the outcome of the automation. Selected by default.
cautionThe Wait for sending confirmation option significantly extends the action execution time and the system response time for the end user.
-
Notify on empty recipients list – if no recipients are defined, the system displays an error.
-
Digitally signed – a digital signature (certificate) is added to the message.
-
Delivery notification – a confirmation is sent back after the message is delivered to the recipient.
-
Read notification – a confirmation is sent back after the recipient reads the message.
-
Send as plain text – the message is sent as plain text without formatting. In this mode, the Mail Approval section is skipped.
-
Handle exceptions – the message is not sent to users excluded from receiving email notifications in the given process. These users are specified in the process settings, in the Users who will not receive email notifications field of the Configuration > Notifications > Email notification sending rules section. The checkbox is selected by default.
-
Mail language – the language in which the message is generated. Dates and numbers are formatted according to the selected language. If translations are not defined for the selected language, the untranslated content is presented in the default configuration language. The According to application settings option (selected by default) means that the message language results from the language configuration of the application. Selecting a specific language forces the message language regardless of the language settings of the application.
infoDetailed information on the Mail language setting is available in the article Email notifications in a multilingual environment on our technical blog.