Send Email#

Send an email using the SMTP protocol.

Important: requires the use of a special password designed for interaction with external applications. To set it up, go to your email settings, section "Security" → "App passwords". Enable the "Use app passwords" option and select "IMAP, POP3, SMTP Mail". Then specify the required secure connection and enter a unique password — it will no longer be displayed and will ensure secure interaction with external services.

Example for Yandex Mail:

  1. Go to "Settings" → "All settings" → "Security":
  1. Click on the "app passwords" link, enable "Use app passwords":
  1. Click the "+" icon to the right of the "IMAP, POP3, SMTP Mail" line:
  1. Enter the password name:
  1. Copy and save the password for external services:

Example for Mail:

  1. Go to the "Password and security" section:

  2. Select the "External services" subsection:

  3. Enable "Access to Mail via IMAP, POP, and SMTP":

  1. Click the "< Back" button and go to the "Passwords for external applications" subsection:
  1. Click the "Create" button:
  1. Enter the password name:
  1. Select the protocol type and click the "Continue" button:
  1. Enter the password for external services, save it, and click the "Confirm" button:
Server[Text] Server (e.g., "smtp.mail.ru").
Port

[Number] Port. If not specified, the default port is accepted:

  • regular connection - 25,
  • secure connection - 587.
Login[Text] Login required for server authorization.
Password[Text/SecureString] Password required for server authorization.
SSLIndicates whether to use a secure connection.
Sender's Email[Text] The email from which the message will be sent.
Sender's Name[Text] The name of the sender from whom the message will be sent.
Recipient's Email[Text] The email address of the recipient to whom the message needs to be sent. To specify multiple recipients, separate them with a semicolon.
Email Subject[Text] The subject of the email.
Email Body[Text] The content of the email.
HTML MarkupIf checked, the email content will be sent as an HTML page and may contain tags.
Attachments[Text/List/Dictionary] Path to the file / List of file paths / Dictionary with files to be attached to the email (key - name, value - path to the file).
Timeout[Number] Timeout for server response. The value is specified in seconds.
CC[Text] Email address of the recipient to receive a copy of the email. To specify multiple recipients, separate them with a semicolon.
BCC[Text] Email address of the recipient to receive a blind copy of the email. To specify multiple recipients, separate them with a semicolon.
Sent Email[Object] The sent email. Can be used in the "Save to Sent" block.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation. Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Message[Text] Returns detailed information about the error in case of incorrect execution of the block's work.