Activity Forums Salesforce® Discussions How to use images in email template in salesforce? Reply To: How to use images in email template in salesforce?

  • PRANAV

    Member
    September 6, 2016 at 5:18 am

    Hi Tanu,

    You can include images or logos on your HTML and Visualforce email templates.

    When creating custom HTML or Visualforce templates, simply include img tags that reference the image.

    For example, for HTML:

    <img src="https://yourInstance.salesforce.com/servlet/servlet.ImageServer?
    id=015D0000000Dpwc&oid=00DD0000000FHaG&lastMod=1270576568000" alt="Company Logo"
    height="64" width="64"/>

    Visualforce example:

    <apex:image id="Logo" value="https://yourInstance.salesforce.com/servlet/servlet.ImageServer?
    id=015D0000000Dpwc&oid=00DD0000000FHaG&lastMod=127057656800"
    height="64" width="64"/>

    Hope this helps you.

    Thanks