> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Recipients

> Recipients

This element is used to specify email recipients.

## Configuration

| Setting  | Description                                                         |
| :------- | :------------------------------------------------------------------ |
| label    | UI label                                                            |
| ticketId | The related ticket<br />Affects the values in the *copyTo* settings |

### Which lines to show

The following **boolean** values specify which lines to show:

* copyToAll
* copyToCreatedBy
* copyToCustomer
* copyToEab
* copyToOther
* copyToOwner
* copyToSelf

## Example

```crmscript theme={null}
copyToAll = false
copyToCreatedBy = false
copyToCustomer = false
copyToEab = true
copyToOther = true
copyToOwner = false
copyToSelf = true
```

## Functions

### getFieldValue(String field)

| Field                  | Description                                                     |
| :--------------------- | :-------------------------------------------------------------- |
| to                     | Returns a properly formatted string of To-recipients            |
| cc                     | CC recipients                                                   |
| bcc                    | Bcc recipients                                                  |
| sms                    | Comma-separated SMS recipients                                  |
| isCopyToAnyCustomerSet | Whether 1 or more recipients are customers<br />1 = yes, 0 = no |

### setFieldValue(String action, Map values)

| Action               | Map keys | Description                                                   |
| :------------------- | :------- | :------------------------------------------------------------ |
| addCustomers         | ids      | Adds customers with IDs specified in the comma-separated list |
| setDefaultToCustomer | id       | Enables the checkbox in front of the customer line            |


## Related topics

- [Work with mailings](/en/marketing/mailing/learn/index.md)
- [Select recipients](/integrations/mail-link/select-recipients.md)
- [NSRecipientStatistics](/en/automation/crmscript/reference/CRMScript.NetServer.NSRecipientStatistics.md)
- [Calculate Message Recipients](/en/api/reference/restful/agent/ticket_agent/calculate-message-recipients.md)
- [Get Recipient Statistics](/en/api/reference/restful/agent/selection_agent/get-recipient-statistics.md)
- [Resolve E Mail Recipients](/en/api/reference/restful/agent/email_agent/resolve-e-mail-recipients.md)
- [Enum RecipientSorting](/en/automation/crmscript/reference/CRMScript.NetServer.RecipientSorting.md)
