Email and SMTP in Decisions
  • 13 Oct 2022
  • 1 Minute to read
  • Dark

Email and SMTP in Decisions

  • Dark

Decisions provides basic email functionality, allowing users to send an email from the application to a user. However, emails sent using the default settings will be filtered out.  To resolve this issue, an SMTP server or relay for email handling must be configured from the installer settings or by updating the Settings.XML file. Users can also update the default EmailAddress of the Portal from the Portal Settings

Using Gmail with Email steps
With Google depreciating Less Secure App settings for Google accounts, users will need to create App Passwords in order to utilize Email steps with Gmail.

Direct Mail Connection

Direct Mail Connection is the default enabled method that works with any valid email in the To and From input fields for email steps. This is used for testing purposes and troubleshooting and is not recommended for live instances. Emails sent using this method are sorted out by spam and junk filters.

SMTP Server

Decisions can be configured to use an SMTP Server or relay by changing the <ByPassSmtpServer> setting to false in the installer settings or Settings.xml file. When this setting is disabled, valid SMTP server settings are required. Confirm that the rest of the <Mail></Mail> settings align with the corresponding SMTP server settings.

Once the external SMTP settings are configured, Flow steps that trigger email events (i.e. Send Email step or assigned Forms) will use these settings to handle outbound mail. 

If ByPassSMTP Server is Enabled (set to true), a validation error will display in the Studio advising against bypassing SMTP Settings in a production environment.

SMTP Settings in Steps

Only one SMTP server can be configured in the settings. If an email event must be triggered for different SMTP servers, certain Flow steps can be configured to bypass and use SMTP settings defined on the step itself. This can be found in the SMTP Settings category for the step. Unchecking Use Default SMTP Settings will allow a custom SMTP server to be used for the step.

For further information on Flows, visit the Decisions Forum.

Was this article helpful?