+ Start a Discussion
JesseRCJesseRC 

Using HTML email template in APEX

I'm trying to have a APEX trigger use a html template. It works in sending the email but i cannot get the merge fields to work.

 

There are two custom objects, object1 and object2. When object1 is "completed" it creates object2 and i would like to use an email template in an apex trigger off of object2. But none of the fields from object2 are coming through. Does anybody have any good examples?