--- title: "How Do I Set Up Mail Output Combining in Lasernet?" slug: "how-do-i-set-up-mail-output-combining-in-lasernet" description: "The Mail Output module allows multiple generated documents to be attached to an email as separate attachments. Explanation in this article." tags: ["Lasernet", "Combining", "Mail output", "Link JobInfos", "JobInfos"] updated: 2024-06-13T12:45:06Z published: 2024-06-13T12:45:06Z canonical: "kb.lasernetgroup.com/how-do-i-set-up-mail-output-combining-in-lasernet" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # How Do I Set Up Mail Output Combining in Lasernet? **Combining** in the **Mail Output** module works slightly differently than in other combining modules. Rather than combining multiple documents generated by Lasernet into one document, the **Mail Output** module allows multiple generated documents to be attached to an email as separate attachments. This email can then be sent to multiple email addresses as required. ## Video Tutorial Learn how to set up **Mail Output Combining** with the help of our [video tutorial](https://kb.lasernet.online/v1/docs/mail-output-combining). ## Steps Follow these steps to set up **Mail Output**: 1. Select **Modules** from the **Tools** section, select the **Output** tab above the **Modules** list, and then double-click the **Mail Output** module from the **Modules** list. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1645441319847.png) 1. Select the **Combining** option on the Toolbar. and ensure the **Enable Job combining** checkbox is selected. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1615457103887.png) Link and stop criteria can be configured here. Although **JobInfos MailBody**, **MailCC**, etc can be set inside the JobInfos tab of the **Mail Output** module, to enable generated documents to be linked and attached to an email, Link and Stop JobInfos must be set prior to documents arriving in the **Mail Output** module. ### Link JobInfos **Link** **JobInfos** are used to determine which separate documents should be placed into one email together. These **Link JobInfos** can be used as a standalone or as multiple **JobInfos**. To add a **Link JobInfo** to the combiner, follow these steps: 1. Click the **Link JobInfo** button to display the **Combining JobInfos** pop-up window. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-YU57TN9T.png) 1. Click the **Add** button, and a smaller pop-up will appear where a **JobInfo** can be entered or selected from the drop-down list. You can use either the system default or custom **JobInfos**. Once selected, click **Ok** > **Ok**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1615457656758.png) ### Stop JobInfos In the **Mail Output**, **Stop JobInfos** ends the combining and releases the queue of attachments. Lasernet attaches these attachments to an email. > [!NOTE] > Note > > As Lasernet can process multiple jobs at a time, the recommended method is to use a Stop JobInfo and a time out. If only a time out is used, it can cause performance issues, as all job data must be stored when waiting to be combined and every document must wait for the timeout to expire. To add a **Stop JobInfo** to the **Combiner**, follow these steps: 1. Click the **Stop JobInfo** button. A pop-up will appear. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-142ZLS7S.png) As with **Link JobInfos**, both the system default and custom **JobInfos** can be used. Unlike **Link JobInfos**, **Stop JobInfos** can use operands (contains, =, exists, etc.). Combined with the ability to create an expression using OR, AND, and XOR using multiple criteria, more customization can be made when defining what is needed to match **Stop JobInfos**. 1. Click the **Add** button to configure the **JobInfo** criteria, and then click **Ok**. #### Maximum Combined Jobs This option defines the most amount of attachments the **Combiner** can attach to an email. By default, this is set to 0 (infinite). If this limit is reached, the documents stored in the queue will be attached to an email and sent to the recipient. #### Time Out in Seconds Time out is the amount of time Lasernet will wait before deciding there are no more documents to match the job. If the limit is reached, all documents stored in the queue will be attached to an email and sent to the recipient. By default, the limit is set to 1 second. #### Release Order Setting up this option allows the order the attachments are placed into the email to be defined. For example, to order the attachments by file name in ascending order, follow these steps: 1. Click **Add**, input the **FileName** as the **JobInfo** name, and set the **Direction** to **Ascending** and the **Type** to **String**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1615458898965.png) 1. Click **OK**, and the **JobInfo** name is displayed on the **Release order** list as follows: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1645443282067.png)