You need to sign in to do that
Don't have an account?
Email preview ( when using Email Template )
I make customer email send page.
There is 'email from' field, 'email body' field, listbox with email templates list and buttons 'load template, send'
After I select template and load it, I get something like this:
Dear {!Contact.Name},
Thank you for your interest in {!Organization.Name}. We will be contacting you shortly.
Sincerely, The Team at {!Organization.Name}
When I push 'load template' button, following apex class is executed:
public void load_template() { EmailTemplate et = [Select Name, Id, Body From EmailTemplate where Id =: EmailTmpl]; EmailBody = et.Body; }
I need to populate {!Contact.Name}, {!Organization.Name} values with right data.
Can you help me ?