automatically generate data to an email
I'm creating an eLearing without using a LMS. The company needs to know the name and department number of the users that have completed the course. The quiz result is not necessary. I have created a data entry fields for the variables (Name and DepartmentNumber) and a trigger to send an email.
My problem is how do I automatically generate the data from the variables into the email?