# Email the team

> Emails the rep who has the lead, a named rep, or a list of addresses.

| | |
|---|---|
| Type | `emailTeam` |
| Group | Tell the team |

## Exits

| Exit | Name |
|---|---|
| `next` | Next |

## Settings

| Key | Label | Takes | Default | Notes |
|---|---|---|---|---|
| `to` | To | `rep` The rep who has the lead, `named` A named rep, `addresses` These addresses | `rep` |  |
| `repId` | Named rep | A string: a rep's id, from list_reps. |  | Only for a named rep. |
| `addresses` | Addresses | A string. |  | Only for addresses: separate them with commas. |
| `subject` | Subject | A string. |  | May hold fields in braces. |
| `message` | Message | A string. May hold several lines. |  | May hold fields in braces. |

## In a flow document

```json
{
  "id": "emailTeam1",
  "type": "emailTeam",
  "settings": {
    "to": "rep"
  }
}
```
