function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Antonino CupiAntonino Cupi 

Visualforce Email Template image not visible

Hi all,

I created a Visualforce Email Template but I can't see the image of the email when I receive the email. In the salesforce preview the image is visible. I created a new document uploading my image and I have checked the "Externally Available Image" option. In the Visualforce Email template I created the following path:

<apex:image value="https://c.cs86.content.force.com/servlet/servlet.FileDownload?file=0157E000000Fs9D"  width="256" height="156" ></apex:image>

How can I see the logo when I receive the email?

Thanks
Best Answer chosen by Antonino Cupi
Maharajan CMaharajan C
Hi Antonino,

Your URL looks wrong so please copy and paste the correct url of image by using below steps:

Right-click the image in after open the image record in document and get its reusable URL address. When you use the URL, you reference the copy of the image on the Salesforce server.

Refer compltely in the Link : https://help.salesforce.com/articleView?id=email_template_images.htm&type=0

Refer the below images:

User-added image

User-added image

Can you please Let me know if it works or not!!!

If it helps don't forget to mark this as a best answer!!!

Thanks,
​Raj

All Answers

Maharajan CMaharajan C
Hi Antonino,

Your URL looks wrong so please copy and paste the correct url of image by using below steps:

Right-click the image in after open the image record in document and get its reusable URL address. When you use the URL, you reference the copy of the image on the Salesforce server.

Refer compltely in the Link : https://help.salesforce.com/articleView?id=email_template_images.htm&type=0

Refer the below images:

User-added image

User-added image

Can you please Let me know if it works or not!!!

If it helps don't forget to mark this as a best answer!!!

Thanks,
​Raj
This was selected as the best answer
Antonino CupiAntonino Cupi
Hello Maharaja,

thanks for the replying! I change the URL as you said, it works!! Thank you very much for the support!

Regards,

Antonino
Joshua LuttmerJoshua Luttmer
I am having this same issue.  I have tried referencing a static resource... No Luck.  I have tried copying the image link like described here. No luck.

<a href="https://www.pango.tv/"><apex:image id="Logo" value="[https://pango.force.com{!URLFOR(!$Resource.PangoLogo)}]"  /></a>
When I do this, it wont let me save the Visual Force page, it gives me the following error:

Error: Static Resource named PangoLogo does not exist. Check spelling. (I am using this image on another Visual Force Page so I know it is there.)

<a href="https://www.pango.tv/"><apex:image id="Logo" value="https://pango--c.na50.content.force.com/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId=0686A000001ctA3&operationContext=CHATTER&contentId=05T6A000005cntV /></a>
When I use the image url as described above the image does not render in emails, but it does show up on the preview of the Visual Force page....

I am not sure what I am doing wrong.  If someone could help that would be awesome.  I am just trying to add an emai signature for our invoices that is identical to the ones we use for our company emails.
Joshua LuttmerJoshua Luttmer
So the documents that I had found about visual force said that we needed to use Apex for images.  I finally gave up and tried just linking direct from my website and that worked!  So I guess for content being delivered outside of Salesforce I don't need Apex....  That would have been good to know ahead of time. Hopefully this will be helpful for others having this issue.

Standard HTML: <a href="https://www.pango.tv/"><img src="https://www.pango.tv/images/email-sig.png" alt="Logo"/></a>