Sending an Email from a Flow

Last Updated: 02/15/2016 Introduced in Verision: 2.0

Add a Send Email component to the Flow Designer workspace to send an e-mail message from the flow. Designate the To and From email address and the subject of the message in the Mapping Editor.

The Send Email component can be found in the Flow Designer’s Toolbox panel in the Communication category.

Example

Our example flow will send an e-mail composed of a few static variables. In most circumstances, we’ll generate e-mails from dynamic variables, such as when we’d send e-mails to a list of recipients. Because our example is so simple, we can build our flow with a single step – Send Email 1.

We’ll begin by navigating to a project folder and selecting the Create Flow button.

createFlow

 

We’ll give the flow a name and click OK.

nameFlow

 

In the Flow Designer start-up window, under the All Steps [Catalog] > Communication category, select a Send Email component and click Add to add it to the workspace. 

 

 flowStarts
Connect output path of the Send Email 1 step to the End step. 
 
Next, to configure the e-mail, one option is to use the Mapping Editor to fill in the required values: From, To, and Subject.

Select the Send Email 1 step, and click the Show Mapping Editor link in the Properties panel.

showMapping

 

Next to the From input, we’ll set the mapping type to Constant . . .

fromConst

 

. . . then enter the email address in the Value field. We’ll repeat the process for the To input.

toConst

 

Next to the Subject input, we’ll click the Show Editor button.

showSubjEditor

 

In the Merge Text Editor, we’ll enter the text for the subject of the e-mail, then click OK.

textEditor

 

The flow is complete. save the flow and click the Debug Flow link to run it in the Debugger.

Note that in Decisions version 3.5 and above, you’ll need to click Test Flow to access the Debugger.

3.5 Test Flow Shot

Click the Diagram tab to see that the flow has completed without any errors.

debugResult

 

We’ll access an e-mail client, and view the message.

11.test_email.png

 

Additional Resources