Skip to main content
I have the below code where the text named "INTERACTION DETAILS" should be in bold and Italics. I tried various combination of html tags but nothing worked. Infact the tags directly appeared on the email body.

Can someone help me use the right tag so that text appears in bold and italics.

<messaging:emailTemplate subject="Speaker Alliance  Request Pending Submission  {!relatedTo.name}" 

recipientType="User" 

relatedToType="ahm__Interaction__c">

<messaging:plainTextEmailBody >

Dear Manager,

INTERACTION DETAILS

<c:InteractionDetailComponent InteractionId="{!relatedTo.Id}" />

If you have any questions or require further assistance, please contact AHM at {!$Setup.Customer_Service__c.Phone_Number__c}.

Thank You,

Anand.

</messaging:plainTextEmailBody>

</messaging:emailTemplate>
1 respuesta
  1. 5 ene 2016, 10:16
    Hi hramani,

    You can't have HTML tags or formatting in between 

     

    <messaging:plainTextEmailBody>

    </messaging:plainTextEmailBody>

    tags... indeed, you can only have plain text, and any tags will be rendered - as you said - as HTML in the body.

    Depending on your requirements you could simply replace these with

     

    <messaging:htmlEmailBody>

    </messaging:htmlEmailBody>

    tags instead? Then your regular HTML will work as you wish.
0/9000