The Email block is used to send emails with an SSL-enabled SMTP mail server.
Procedure
-
Add an Assign block to the workflow and specify a variable such as $message, and an HTML-formatted text value, such as <b>This is an email</b>.
- Drag and drop an Email block into your workflow. Configure the email block with the following settings:
Table 1. Email input variables Variable name Description Example values authKey The authentication key for a generic API authentication scheme, which you can extend. Admin/SMTP From The email address from which the message is sent which must match the address that is used in the related authKey. youremail@mail.com To The email address to which the message is sent. Use commas between email addresses when there is more than one receiver.
somemail@mail.com, anotheremail@mail.com Subject The subject of the email. My email subject Text The content of the email. This is an email Html A workflow variable that contains the email text in HTML format. $message - In this block, use the
$resultvariable and set the value to $<email-block-name>.response, where <email-block-name> is the name of the email block instance, for example, Email_1. - Run the workflow to send the email.
Disabling the Email block
To temporarily disable this block without deleting it, turn off the switch in the block header.