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
ShaTShaT 

Background image not displaying in mail

Hi,

I have created a custom email template and i have added a backgound image in body tag and have some merged fileds.

When i save the template i can see the background image and merge field but when i mail the template i am not able to see the Background image i see only only text. 

Wolud any one share there expericance how they resloved this error or any one have any idea how i can reslove this.

Thanks
ShaT


Grazitti TeamGrazitti Team
Hi ShaT,


You can save that image in document object and then use that. This will surely solve your problem.


Please Mark this as Answer if it helps you
--
Regards,
Grazitti Team
Web: www.grazitti.com
Email: sfdc@grazitti.com
ShaTShaT
Hi ,

Its saved in doument object and i have checked the check box Externally Available Image .

Thanks
ShaT
ShaTShaT
I had already saved the image in doucmnet, but still it is not appearing in the mail. Do you have more suggestions 
Grazitti TeamGrazitti Team
I doubt you are making mistake somewhere, because there is no other reason that image won't display in the mail after saving in the Document object.
Make sure, you click on "show image" when it come in your inbox and also validate that you are using correct URL for that image.

https://help.salesforce.com/HTViewHelpDoc?id=email_template_images.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=email_template_images.htm&language=en_US)


Grazitti TeamGrazitti Team
Can you access your image URL like this after saving in document object?

https://c.cs9.content.force.com/servlet/servlet.ImageServer?id=015K00000003J0L&oid=00DK0000005INlZ&lastMod=1375798004000


ShaTShaT
Yes.. i can see image in doucment and when i save the template i can see it in backgound, but i mail image doesnt appears. 

Grazitti TeamGrazitti Team
can you share the URL? we will try using that in our email template.
ShaTShaT
Hi,

Please find the template 

<html>
<head>

</head>
<body style="background-image: url(https://c.na17.content.force.com/servlet/servlet.ImageServer?id=015o0000000FRi4&oid=00Do0000000IvNv&lastMod=1410935382000) ;background-repeat: no-repeat;">

<table align="right" width="20%">
<td ></td>
<td ><td>
<tr>
<td  align="right">

<div style="color:#ffffff ; font-family:Hebrew;" align="right"  word-wrap: break-word;>
<br/><br/>
<div style="color:yellow";>
{!Contact.Name}<br/>
{!Contact.Birthdate}<br/>
</div>




</div>

</td></tr></table>

</body>
</html>

Thanks
ShaT
ShaTShaT
Did you got any luck to resolve the error?
Grazitti TeamGrazitti Team
yes..! that worked perfectly fine in our email template. we are using Visualforce template.
User-added image
ShaTShaT
Can you please send me the code. So i can test it in my sandbox