function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Burdah-ModenBurdah-Moden 

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 ?

 

 

Message Edited by Burdah-Moden on 03-16-2010 02:34 AM
Burdah-ModenBurdah-Moden
UP
Burdah-ModenBurdah-Moden
up
Burdah-ModenBurdah-Moden
UP