Email

Send emails within flows.

Actions

Email

Action that provides the ability to send SMTP emails via a SMTP relay.

Input

Name Description Type Required Syntax
From The sender of the email. input True True
To Recipient of the email. input True True
Subject Email subject line. input True True
HTML Email When True the email body will be sent as HTML. checkbox True True
Body Message content. input True True
Use Storage File When true the attachment provided should be a storage file ID. checkbox False False
Attachment Filepath or storage file ID when 'Use Storage File' is True. input False True
Host SMTP server host to use when sending the email. input True True
Port SMTP server port to use when connecting to the SMTP host. input True True
TLS When true the connection will be secured over TLS. checkbox False False
Username When defined the username will be used as part of the login details to the SMTP server. input False True
Password When defined the password will be used as part of the login details to the SMTP server. password-input False True

Output

Name Description Type always_present values
result Returns True when successful. boolean True {"True": {"description": "Successful."}, "False": {"description": "Failure."}}
rc Returns the exit code for the action. number True {"200": {"description": "Email sent successfully."}, "401": {"description": "Remote server failed to start TLS."}, "400": {"description": "Unable to send email due to an error."}}

Python Requirements

  • smtplib

Default configuration requirements are automatically installed when an integration is installed.