---
updatedAt: 2026-02-26T15:12:30.000Z
agentTools:
  projectIndex: https://developer.intellistack.com/llms.txt
---

# 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

| name          | type   | required | description                                                                                                    |
| ------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------- |
| `connection`  | string | yes      | The name of the SMTP connection to use, as configured in Integrations.                                         |
| `action`      | string | yes      | The operation to perform. Must be `SEND_EMAIL`.                                                                |
| `sendFrom`    | string | yes      | The sender email address.                                                                                      |
| `sendTo`      | string | yes      | The recipient email address. Supports [mapping placeholders](https://developer.intellistack.com/docs/mapping). |
| `subject`     | string | yes      | The email subject line. Supports mapping placeholders.                                                         |
| `message`     | string | yes      | The email body content. Supports mapping placeholders.                                                         |
| `attachments` | array  | no       | Optional file attachments. See [Attachments](#attachments) below.                                              |

## Attachments

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

| name     | type             | required | description                                                                                                                                                                                                       |
| -------- | ---------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source` | string or object | yes      | The 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. |
| `name`   | string           | yes      | The 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.

```json Send an email with an attachment
{
  "connection": "smtp-prod",
  "action": "SEND_EMAIL",
  "sendFrom": "no-reply@example.com",
  "sendTo": "customer@example.com",
  "subject": "Invoice",
  "message": "Please find your invoice attached.",
  "attachments": [
    {
      "source": {
        "id": "file-777",
        "downloadUrl": "https://files.example.com/download/file-777"
      },
      "name": "invoice.pdf"
    }
  ]
}
```