# How to automatically send the vendor an email when a customer activates a license

You can use QLM's scheduled tasks and email integration to automatically email yourself (the vendor) when a customer activates their license key.

To do so:

* Click on the Manage Keys tab
* Click on the Search drop down and select Edit Searches
* Click on Add to add a new search
* Set the Name to: Recently Activated (or any name you wish)
* Set the SQL field to: ActivationDate > \[date]
* Click OK.

Then, in the ribbon bar, click on the Tools / Scheduled Tasks

* Click on Add to add a new task
* Set the Name to: Recently Activaated (or any name you wish)
* Select your License Server
* In the Search drop down, select the Search we created earlier: Recently Activated
* Set the Schedule Run every to: 5 Minutes starting at the desired time
* In the Email tab:
  * Uncheck Send to customer&#x20;
  * Uncheck Send to User Group Owner
  * Set the CC field to your email address
  * Enter a Subject for the email&#x20;
  * Select the Outlook Profile and the Email account to use
  * Select Email template (you can create an email template from the ribbon bar Mail / Templates).


---

# 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/email-notifications/how-to-automatically-send-the-vendor-an-email-when-a-customer-activates-a-license.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.
