In many workplace scenarios, we often need to convert rows from Excel into personalized emails — such as sending performance summaries, customer invoices, internal reports, or appointment reminders. Doing this manually can be extremely time-consuming.
This guide demonstrates a universal, no-code method to automate such tasks using SQLMessenger. We'll use KPI reports as an example, but the same method applies to any Excel-to-email use case.
You can edit the email body template and KPI list template in Excel first. These templates will be used in the second step when configuring the email task.
For example, replace the salutation 'Dear John' in the email with the placeholder 'Dear #@@LoopData(FirstName)#'. Here, "#@@LoopData(FirstName)#" indicates that the "FirstName" field from the KPI list will be dynamically displayed in this position.
The designed email body template is as follows:
Configure an email dispatch task in SQLMessenger. Once set up, executing this task with monthly KPI list imports will automatically generate and send batch KPI notification emails.
(1) Check the "Generate a subtask instance for each recipient in the Recipient List to individually query and send information (Loop Task)" option.
(2) Click the "Recipient List (Loop Data) Config" button.
(1) Click "Select Data File" button.
(2) Choose "KPI List Template.xlsx" created in Step 1.2.
(3) Click the "OK" button to close the "Recipient List (Loop Data) Config" dialog.
(1) Click the "Insert Pre-Designed Table" button.
(2) Select the email template table designed in Step 1.1.
(3) Click the "OK" button.
Replace "June 2025" in the subject line "Your KPI Performance – June 2025" with the placeholder "#@@LoopData(KPI_Month)#". SQLMessenger will automatically populate it with the value from the "KPI_Month" field in the KPI list.
Click the "Add From a Variable" button, then click the button next to "@@LoopData()" under "System Variables/Functions."
In the "Set Function Parameters" dialog box, select the "Email" field, then click "OK."
The task configuration is complete. The configuration only needs to be done once. In the future, when distributing KPI data each month, you can simply run this task and import the current month's KPI list.
When you need to distribute KPI data each month, simply run the task that was configured in the previous step.
After verifying that the table data is correct, click the "OK" button. SQLMessenger will then begin generating the emails.
If the "Approval & Send" button cannot be found in the "Sub-Task Instances" dialog box, click the "Close" button, then click the "View Results of the Task Instance" button on the toolbar to reopen the "Sub-Task Instances" dialog box.