# mail.send

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

`type: "mail.send"`

Envia un messaggio da una delle proprie addresses del conto. Necessita un passo umano a monte — non c'è exception.

Status: needs approval upstream · 5 recipients · box required

> **Un passo umano è necessario a monte**
>
> Questo agisce al l'esterno del conto, e un run non ha chies. La definizion è negata quando lo salva a meno che un passo umano siede sul sentiero che raggiunge questo.

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `box` | string | obrigatório | L'indirizzo che scrive. Deve essere uno del conto. |
| `to` | string | string[] | obrigatório | Cinqui destinatari, al massimo. |
| `cc` | string | string[] |  | Copia. |
| `subject` | string | obrigatório | Il tema. |
| `text` | string |  | Texto puro. |
| `html` | string |  | O HTML. Uno dei due è richiesto. |

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

## Saída {#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
```

## Aceptat non è entregue {#accepted}

> **Le manis de relès quando il messaggio è coda**
>
> Ce che accade dopo che non ci è dito. Una catena che informa «enviat» a qualcuno sta informando che è accettat — che è vero, e non è la stessa cosa.

## La conta deve possessir la caixa de posta {#owns}

Non c'è altra forma de enviar. Un `box` che non è una delle adrese del cont fa fail pas.

- [humanos](/pt/sdk/workflows/steps/human): L'aprobazion di questi tre esige.
- [mailbox.send()](/pt/sdk/ref/mailbox/send): A partir do código.
- [Etapas do fluxo de trabalho](/pt/sdk/workflows/steps): Os 23 tipos.

```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
```
