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
clahavclahav 

inject external content into html email template using APEX webservice

experts,

 

i want to create an html email template to which i can inject external dynamic content

i know that this can be done using 'merge parameters/fields' from SFDC objects but i want to inject external info to the email

i know that i can inject html into the email via apex but i would like to use html email templates for reuse and management

can this be done ?

anyone has an idea how?

can i retrieve email html template in runtime and inject external value into a specifc email instance using place holders or some othe method?

 

cheers

Prafull G.Prafull G.
You can try using Visualforce EMail Templates. As you can use Controller with those, probably it will help. Here is more details about Visualforce Email Templates.
http://wiki.developerforce.com/page/VisualForceEmailTemplates_sample