*Workflows › Reference › Actions › Communication*

# Send document by email

> Sends a sales document by email with a template, its PDF or the portal link.

## At a glance

| Property | Value |
| --- | --- |
| Domain | `email` |
| Group in the editor | Communication › Email |
| Runs as | The owner of the workflow, with their permissions |
| Permission | Edit access to Sales. Administrators always pass; a module outside the plan blocks everyone. |
| Destructive | Not declared |

ACTION `email.sendDocument`

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `documentType` | enum<string> | Yes |  `invoice`, `proforma`, `quote`, `creditNote`, `contract`, `packing_slip`, `salesReceipt`, `simpleCreditNote`, `purchaseOrder`, `repairTicket` |
| `documentId` | string | Yes |  |
| `to` | string[] | Yes | One address per row. It can come from the trigger, for example the email of the document's contact. |
| `cc` | string[] | No | Emails in visible copy (CC). |
| `templateId` | string | No |  |
| `subject` | string | No |  |
| `body` | string | No |  |
| `attachPdf` | boolean | No |  = `true` |
| `portalLink` | boolean | No |  = `false` |

## Outputs

| Name | Type | Description |
| --- | --- | --- |
| `historyRecordId` | string |  |
| `messageId` | string |  |

---

Canonical URL: https://docs.filmo.io/workflows/reference/actions/email-senddocument  
Last updated: 2026-10-25