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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soraco.co/docs/email-framework/how-to-exclude-customers-from-email-notifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
