# mail.send

Canonical URL: https://developers.iagenify.com/sdk/workflows/steps/mail-send/
Language: en

`type: "mail.send"`

Sends a message from one of the account's own addresses. It requires a human step upstream — there is no exception.

Status: needs approval upstream · 5 recipients · box required

> **A human step is required upstream**
>
> This acts outside the account, and a run has nobody to ask. The definition is refused when you save it unless a human step sits on the path that reaches this one.

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `box` | string | required | The address that writes. It must be one of the account's. |
| `to` | string | string[] | required | Five recipients at most. |
| `cc` | string | string[] |  | Copies. |
| `subject` | string | required | The subject. |
| `text` | string |  | Plain text. |
| `html` | string |  | Or HTML. One of the two is required. |

```javascript
{ id: "send", type: "mail.send", config: {
    box: "ops@example.com",
    to: "{{steps.approve.output.recipient}}",
    subject: "Weekly digest",
    text: "{{steps.write.output.text}}" } }
```

## Output {#output}

```javascript
{{steps.send.output.accepted}}   // true
{{steps.send.output.from}}       // the address the recipient actually sees
{{steps.send.output.aligned}}    // whether it was signed with its own domain
```

## Accepted is not delivered {#accepted}

> **The relay hands back when the message is queued**
>
> What happens after that is not told to us. A chain that reports « sent » to someone is reporting that it was accepted — which is true, and is not the same thing.

## The account must own the mailbox {#owns}

There is no other way to send. A `box` that is not one of the account's addresses fails the step.

- [human](/sdk/workflows/steps/human): The approval these three require.
- [mailbox.send()](/sdk/ref/mailbox/send): From code.
- [Workflow steps](/sdk/workflows/steps): The 23 types.

```python
{"id": "send", "type": "mail.send", "config": {
    "box": "ops@example.com",
    "to": "{{steps.approve.output.recipient}}",
    "subject": "Weekly digest",
    "text": "{{steps.write.output.text}}"}}
```

```python
"{{steps.send.output.accepted}}"   # True
"{{steps.send.output.from}}"       # the address the recipient actually sees
"{{steps.send.output.aligned}}"    # whether it was signed with its own domain
```
