how to use items/variables inside html body apex_mail
Hi,
I'm trying to make an email application with several templates.
I've created a table with the following columns: to, from, body_html and subject.
Also I've created a form with the next items: name, surname, company, email.
What I would like to do is send all the emails inside the template table (body_html) using apex_mail.send.
My problem is that I would like to use the items they filled in, inside the html body.
Is there a way I can use the items (P1_NAME,P1_COMPANY) etc. inside the template table?
Thanks so much!
REgards, Bas