1

I have a custom Visualforce Email Template that is working as expected when sent via an email alert on the workflow rule. I am now trying to update that Visualforce Email Template with some additional text (just text, no formatting or merge fields). However, making the updates and after saving the template, the HTML Preview of the template is not updated with the new text, nor is the email itself when sent out. (The Plain Text Preview is updated though). Has anyone seen similar issues or know what I may be doing wrong?

0

1 Answer 1

2

If you look at your template, there are a few tags to pay attention to. Notice that there are separate tags for <messaging:htmlEmailBody> and <messaging:plainTextEmailBody>. Making changes inside one tag will not affect the other. If you have both tags defined, you must add your copy to both.

<messaging:emailTemplate>
    <messaging:htmlEmailBody>
        <!-- html content -->
    </messaging:htmlEmailBody>
    <messaging:plainTextEmailBody>
        <!-- plain text content -->
    </messaging:plainTextEmailBody>
</messaging:emailTemplate>
1
  • 1
    That was exactly it, I was only making my updates within the <messaging:plainTextEmailBody> tags.
    – John_Henry
    Nov 9, 2016 at 14:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .