+ Start a Discussion
Anshul Kapoor 13Anshul Kapoor 13 

Image is not shown for the Rich Area Text field on email

Hi All,

<messaging:emailTemplate subject="Need the access" recipientType="User" relatedToType="X411_Support__c">
<messaging:htmlEmailBody >

        <html>
            <body>

            <p>Dear {!recipient.name},</p>
            
            <apex:outputField value="{!relatedTo.Comment__c}" />
            
            </body>
        </html>
    </messaging:htmlEmailBody>
</messaging:emailTemplate>

Above is the line of code of Visualforce email template. Comment is the Rich Text Area field of object 'X411_Support__c'. On firing an email, the email does not show the image of rich text area field. 

I have used the tag <apex:outputText value =  "{!relatedTo.Comment__c}" escape = "false"/>. But no use.

Could some body help me regarding code, so the image is displayed on email.
Prady01Prady01
Hi, You could try this.

<apex:outputText value =  "{!relatedTo.Comment__c}" escape = "true"/>

Thank you
Prady01
Anshul Kapoor 13Anshul Kapoor 13
Hi Prady,

Thanks for your reply. 

I have used the tag: <apex:outputText value =  "{!relatedTo.Comment__c}" escape = "true"/>. But, instead of showing the image, it is showing the url of image.
Anshul Kapoor 13Anshul Kapoor 13
Hi All,

Could some body reply to my post.
Prady01Prady01
Hi, If its a image that you want to display then use the apex:image instead of outputText.

Thank you
Prady01