# 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="https://753808167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUyBSbAsJGrr7Cy6XtruH%2Fuploads%2FvZiv8ERIscBfV8fQrRmB%2Fimage.png?alt=media&#x26;token=5444081d-47ae-4a57-89c4-c2d3961f6f30" 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="https://753808167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUyBSbAsJGrr7Cy6XtruH%2Fuploads%2FjirhL3G8TBjs2PJTxIJb%2Fimage.png?alt=media&#x26;token=a17a4fe9-1eec-430e-836a-0d450a36557a" 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="https://753808167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUyBSbAsJGrr7Cy6XtruH%2Fuploads%2FKChRJfZLOC9KDsgCI3Qu%2Fimage.png?alt=media&#x26;token=a92e8184-2ace-46cb-924a-8bddba9e06f3" alt=""><figcaption><p>Customer Information</p></figcaption></figure>
