+ 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