Available since с v3.3.0

Implements the email mailing in certain places in the script. The mailing is carried out via SMTP.

Description:

Sending via MailGun example

Untitled

Code in Json configuration block:

{
  "host": "smtp.mailgun.org",
  "service": "mailgun",
  "login": "postmaster",
  "password": "4c0b23649a4b8b6b96c9a96b55b2b30d",
  "subject": "Новая заявка",
  "to": "[email protected]",
  "html": "Поступила новая заявка от пользователя. Его данные:<br><br>{{constants:ins_police_number|ins_phone|ins_email}}"
}

We get a letter like this:

Untitled

Description of available values

The fields marked with an asterisk (*) are required. You can specify details for host, port, secure, service, login and password in the .env file.If you specify data in a block, then the data from the block will be used, not from .env

Table

It is also worth noting that the empty service is not a dispatch service, but an indication not to use the service at all. In this case, you can send through any SMTP server.