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
Debbie ChrysochouDebbie Chrysochou 

Images in Visualforce email templates

Dear all,

I have a problem regarding the images. I followed the steps using the answers that provided in another post : https://developer.salesforce.com/forums/ForumsMain?id=906F000000096DdIAI

The thing is on the test verify I do see the image but when I email the template it shows as broken.
My steps were :
1) Created a folder named image and added the jpg.
2) Zipped the file and uploaded it into Static Resources.
3) The code used to have the jpg into the email is : 
<img src="{!URLFOR($Resource.WeddingLogo, 'image/WeddingLogoNew.jpg')}" height="75" width="350" alt="WeddingLogoNew.jpg"></img>

I do get it on the preview but not on the emails that I send. Any idea what is causing this??
 

Best Answer chosen by Debbie Chrysochou
PratikPratik (Salesforce Developers) 
Hi Debbie,

It's broken image that is showing up.

This shold resolve the issue:
https://help.salesforce.com/HTViewHelpDoc?id=email_template_images.htm&language=en_US

https://developer.salesforce.com/forums/ForumsMain?id=906F000000096GmIAI

Instead of static resource, add the image in Document and use it's server link.

Thanks,
Pratik

P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.

All Answers

PratikPratik (Salesforce Developers) 

Hi Debbie,

Have you checked in your email wheather it's showing option to download image option.
Many time in email it will not show image but it will ask in the top side of email header to download image.

Thanks,
Pratik
Debbie ChrysochouDebbie Chrysochou
Hi Pratik thank you for your reply.
Here is an outlook. 
This is in the email that received

And here is the Html Preview in Salesforce

User-added image

There is no option for downloading the image!
 
PratikPratik (Salesforce Developers) 
Hi Debbie,

It's broken image that is showing up.

This shold resolve the issue:
https://help.salesforce.com/HTViewHelpDoc?id=email_template_images.htm&language=en_US

https://developer.salesforce.com/forums/ForumsMain?id=906F000000096GmIAI

Instead of static resource, add the image in Document and use it's server link.

Thanks,
Pratik

P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.
This was selected as the best answer
Debbie ChrysochouDebbie Chrysochou
Thank you Pratik,

Your answer was helpful and have managed to solve the problem.
PratikPratik (Salesforce Developers) 
Glad it helped! Thanks, Pratik
David Fincher 2David Fincher 2
As per Arthur Samuel one of the unbelievable AI masterminds, "the field of learning in which a PC or smart machine is furnished with the capacity of gaining from the information without unequivocally programming them". Thus, exceptionally obvious from the above definitions AI is the field of studies in light of AI calculations, where machines (not human) find out about how to grasp what is going on and answer properly. Assuming you're searching for GIS programming improvement for your business, go ahead and reach out to the specialists at Mobilunity. Different AI strategies in light of AI devices and procedures are taken on in this space of studies. A couple of vital AI techniques are recorded beneath.
Source: https://mobilunity.com/blog/hire-machine-learning-developers/