# Mail

QLM provides a framework for sending emails to your customers.

### ![](https://753808167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUyBSbAsJGrr7Cy6XtruH%2Fuploads%2FCa7ErYTXBnHWbFDERXfl%2Fimage.png?alt=media\&token=533b8786-50ea-4846-9627-c786f3d81283)Send Emails

To send a personalized email to a set of customers:

* Perform a search that returns a set of data.
* Select the items that you want to send an email to or click on the Select All button.
* Click on the Mail/Send button.
* Select the Outlook profile to use.
* Select the email template to use.
* Select the E-mail account to use.
* The **To** field should already contain the email of the selected customers.
* The additional **To** field allows you to type additional email addresses. Note that if your email message uses variables, these variables will not be expanded when sending emails to the additional recipients.
* Enter the Subject of the email.
* Enter the body of the email.
* Click on the Send button.

\
To create a personalized message, you can use variables within the **Subject** and the **Body** of the message. Any of the visible columns in the License Management tab may be used as variables.\
For example, your message could read:\
\
`Hi %FullName%,`\
`Thank you for your recent purchase of %ProductName% %MajorVersion%.%MinorVersion%.`\
`Your license key is: %ActivationKey%.`\
`Regards,`\
`Tom`<br>

### ![](https://753808167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUyBSbAsJGrr7Cy6XtruH%2Fuploads%2Fejqhvlgw2AVDS1ozXd34%2Fimage.png?alt=media\&token=2911777a-a214-4cc7-a380-185da315b47e)Templates&#x20;

Templates allow you to create common email content that can be readily used when sending manual or automated emails to your customers. Automated emails can be configured from the Scheduled Tasks option.<br>

![](https://753808167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUyBSbAsJGrr7Cy6XtruH%2Fuploads%2FHzhJS88M8RylZGYkaDz3%2Fimage.png?alt=media\&token=df6cb7fb-0beb-43cb-af41-d2bcb775c4df)Aggregated Emails

Typically, QLM sends an email to the customer associated with the license along with any other email you specify in the CC or BCC fields. In some cases, however, you may want to send an *internal* email to yourself or someone within your company instead of the customer. To do so, you simply uncheck the "Send To Customer" check box. When sending an *internal* email, rather than receiving one email for each affected record, you could configure QLM to send you an email that aggregates results from several records. This is accomplished by adding special tags in the email body to identify the repeatable section.\
There are two ways to configure an email to aggregate multiple records into a single email:

**Standard text format**

If your email is formatted as plain text, you can delimit the repeatable section with the following tags:

* \*\*\*qlm\_content\_start\*\*\*
* \*\*\*qlm\_content\_end\*\*\*

qlm\_content\_start identifies the beginning of the repeatable section whereas qlm\_content\_end identifies the end of the repeatable section.

**Table format**

If your email is formatted as plain text with a repeatable section formatted as an HTML table, you can delimit the repeatable section with the following tags:

* \*\*\*qlm\_table\*\*\*

qlm\_table identifies the beginning of the repeatable section. Your table must start right after this tab. There is no need to specify a tag to delimit the end.
