Find your content:

Search form

You are here

Is it possible to have HTML in a visual force email template?

 
Share

I have created a VisualForce template. I need to use its advanced wiring facilities so can't use other template types.

I am trying to have some HTML in this template but not having much luck.

I add:

<HTML>
<BODY>
<I>This should be in italic</I>
</BODY>
</HTML>

to the template but it comes out verbatim as:

<HTML>
<BODY>
<I>This should be in italic</I>
</BODY>
</HTML>

Any ideas how I can add HTML to a visual force template?


Attribution to: dublintech

Possible Suggestion/Solution #1

<messaging:emailTemplate subject="Sample Disbursement Receipt" recipientType="User"  relatedToType="Call__c">
 <messaging:htmlEmailBody >
 <html>
<body>
Please find your sample drop receipt attached with this mail.
    </body>
    </html>
   </messaging:htmlEmailBody>
   </messaging:emailTemplate>

The sample Template that you can use .


Attribution to: Mohith Shrivastava
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/4637

My Block Status

My Block Content