Skip to main content

Sending Payslips via SMTP

How to Send Payslips in Bulk via SMTP Server

Written by Lenka Haringerová

Sending Pay Slips Using Templates via SMTP

We set up the SMTP server by following the SMTP Setup guide.

We set up the template for sending pay slips in the same way as in previous cases — we choose an abbreviation and a name, and fill in the template text. In the Payroll module, you can use FreeMarker variables; more information is available here. We also offer an add-on with a ready-made template.

In the empty Template field, enter the required text. To have the data change according to the payroll month, you can use so-called FreeMarker variables. These variables are part of the Java templating language in which the ABRA Flexi application is built. Without these variables, it is therefore not possible to define custom templates. Variables are enclosed in curly braces { } and always prefixed with the $ symbol:

${user} - the user object that can be used for further processing

{object} - generic access to the passed object

${object.jmeno} – Employee's first and last name

${object.mesic} – month of the processed payroll

${object.rok} – year of the processed payroll

On the Usage tab, we must select that this is a template for payroll updates. For pay slips, no additional document type settings are required.

In the Texts tab, you can set an optional note, and in the Settings tab, fill in the sender's email address and subject. If the sender differs from the one configured in the SMTP server settings, the email address entered here will take precedence.

Everything is now configured and we can send pay slips in bulk via SMTP. This can be done from the menu Employees - Payroll Updates. Here, select the payroll records for a specific month for individual employees by checking the checkbox on the left. The quickest approach is to filter by the relevant month and select all employees by checking the box in the upper left corner, as shown in the image:

Then click the arrow as shown in the image:

and select Send (SMTP). This will send the pay slips to the email addresses listed for each employee in the HR module under the Address - Contact tab.

A detailed guide on setting up and using email templates can be found here: Custom Email Templates and SMTP | ABRA Flexi (flexibee.eu)

Did this answer your question?