SMTP Step

Send an email via SMTP as part of your workflow. Use this step when you manage your own mail server or need to deliver messages through a specific domain.

The SMTP step sends an email through a configured SMTP server using a named connection. Use it when your organization manages its own mail infrastructure or needs to deliver messages from a specific domain rather than a third-party email service.

Configuration

nametyperequireddescription
connectionstringyesThe name of the SMTP connection to use, as configured in Integrations.
actionstringyesThe operation to perform. Must be SEND_EMAIL.
sendFromstringyesThe sender email address.
sendTostringyesThe recipient email address. Supports mapping placeholders.
subjectstringyesThe email subject line. Supports mapping placeholders.
messagestringyesThe email body content. Supports mapping placeholders.
attachmentsarraynoOptional file attachments. See Attachments below.

Attachments

Each entry in the attachments array defines a file to include in the email.

nametyperequireddescription
sourcestring or objectyesThe file to attach. Accepts an object with id and downloadUrl, a generated file descriptor with name and optional metadata, or a plain string URL. See the Amazon S3 step for full source format details.
namestringyesThe file name to use as the attachment name in the email.

Example

Here's a minimal configuration that sends an email with a single PDF attachment.

{
  "connection": "smtp-prod",
  "action": "SEND_EMAIL",
  "sendFrom": "[email protected]",
  "sendTo": "[email protected]",
  "subject": "Invoice",
  "message": "Please find your invoice attached.",
  "attachments": [
    {
      "source": {
        "id": "file-777",
        "downloadUrl": "https://files.example.com/download/file-777"
      },
      "name": "invoice.pdf"
    }
  ]
}