You need to sign in to do that
Don't have an account?
Benjamin Bogart
Include HTML or VisualForce page in email template
Hello,
Is it possible to include a visualforce (or HTML) page in a visualforce email template?
The use case is I have a set of data that changes, but needs to be appended to several different kinds of emails. I would like to keep this data in a single visualforce page which I can update only once, and automatically include it at the end of the various other email templates I create.
(I new here). Thanks for the help.
Is it possible to include a visualforce (or HTML) page in a visualforce email template?
The use case is I have a set of data that changes, but needs to be appended to several different kinds of emails. I would like to keep this data in a single visualforce page which I can update only once, and automatically include it at the end of the various other email templates I create.
(I new here). Thanks for the help.
First, Create a Visualforce Component Instead of Visualforce Page.
Example: Component Name - awesomeComp You can learn more about components Here. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_comp_cust_def.htm
Then you can create Your visualforce email template and add it to the template.
Best,
Nithesh
All Answers
You can give a try using Visualforce email templates where you can add reusable VF component (this component will contain the data)
Thanks!
First, Create a Visualforce Component Instead of Visualforce Page.
Example: Component Name - awesomeComp You can learn more about components Here. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_comp_cust_def.htm
Then you can create Your visualforce email template and add it to the template.
Best,
Nithesh
But I wonder, is there a way to use an html child theme in an email template instead of using a visualforce template. For this application standard email template merge fields will be sufficient. I don't need any business logic or data lookups, but I might need to use the component in a mass mailing at some point which is not available on visualforce templates.
Thanks!