Skip to main content

Send email block

The HTTP request block in J‑Graph allows the bot to send emails to the specified email address.

Send email block

Block settings

To add a block to the script:

  1. Select Send email in the list of action blocks.
  2. Configure the required message parameters:
    • Recipient email.

    • Subject.

    • Message body.

      tip
      The message body can be formatted using HTML markup.

Inside every field, you can use value substitutions inside the {{}} brackets. The brackets can contain any valid JavaScript expression, such as a built-in variable reference:

File attachments

There are two ways to attach files to the message:

  • Upload a file from your device.
  • Specify the name of a session variable containing the link to the file.
Setting email attachments

Here, the file will be attached to the email using the link from $session.document.

caution
The file size cannot exceed 25 MB.

Block transitions

Send email block can have up to two links to other script states:

  • Sent successfully.
  • Error.