> For the complete documentation index, see [llms.txt](https://docs.soraco.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.soraco.co/docs/email-framework/how-to-exclude-customers-from-email-notifications.md).

# How to exclude customers from email notifications

When configuring scheduled tasks, you must select a "search" that returns a list of license keys based on criteria specified in the search as shown in the screenshot below.

<figure><img src="/files/wz0dDx0xgCUJHrrYxvjK" alt=""><figcaption><p>Scheduled Tasks</p></figcaption></figure>

It is recommended that all "searches" include the following statement in the SQL field:&#x20;

```sql
IncludeInMailList <> 0
```

<figure><img src="/files/145WlyPJ56mDb0yPC2lb" alt=""><figcaption><p>Search configuration</p></figcaption></figure>

Finally, to configure a customer to not receive email notifications, edit the customer information and uncheck the "Mail List" field.

<figure><img src="/files/Oous1qZ4MWe2Z2lKQN9l" alt=""><figcaption><p>Customer Information</p></figcaption></figure>
