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
IckIck 

Using image attachments in templates

I know it's possible to send emails with attachments and to hotlink images in templates using the img tag, but is there a way to reference an image in an email so that it is used in the email as, say, part of a signature?

 

The issue at hand is that it's bothersome when clients get the security warning bar appearing in their outlook telling them not to download images from the web; we'd like to avoid that but still use our company logo in our email signatures.

 

Any help would be appreciated, even if it's someone telling me that it cannot be done.

Best Answer chosen by Admin (Salesforce Developers) 
Going South.ax738Going South.ax738

I tried the following help from link below but it did not work for me.May be I am missing something.

http://community.salesforce.com/t5/Visualforce-Development/How-to-display-image-from-document-folder-in-VF-PDF-page/m-p/152923

 

1. Create a new Saleforce document, e.g. "bandoneon.jpg".
2. Go to the detail page of the document. Near the "keyword" line, you should see "Click here to view the file". If you hover your mouse pointer of it, you should see the URL, something like "https://na5.salesforce.com/servlet/servlet.FileDo

 wnload?file=01570000000toA8". Right-click (assuming you are using MS Windows) the URL then select "Copy link location"

 

I believe its a feature of outlook of which salesforce cannot do much.

here how we can reset the outlook settings to enable them pictures.

 

http://office.microsoft.com/en-us/outlook-help/unblock-image-downloads-in-outlook-HP001085952.aspx

All Answers

Going South.ax738Going South.ax738

You can use HTML to set up images to be part of your email. Just place images in a folder with a setting of 'externally available image' to true and access that image within html code with img tab. I guess it works for you.

check on

http://community.salesforce.com/t5/Product-Discussion/Image-background-for-email-templates/m-p/43985

IckIck

Sorry, I didn't articulate it quite as well as I should have.  The issue at hand is that we don't want to hotlink to images hosted on the internet; we want to send the images as an email attachment and have them appear in the emails as graphics.  When you receive an email with graphics in it, Outlook says

 

"Click here to download pictures. To help protect your privacy, Outlook prevented automatic download of some pictures in this message."

 

We want to avoid having that bar appear.  Sending emails through outlook, our email signature has an image that is embedded in the email as an attachment and because it's an attachment and not an image hosted on the web, it is opened automatically in Outlook (you can only track when people load images from a server, not when people download attachments).  

 

So I want to attach an image to the email, and then hotlink to the attached image. Can that be done with salesforce?

Going South.ax738Going South.ax738

I tried the following help from link below but it did not work for me.May be I am missing something.

http://community.salesforce.com/t5/Visualforce-Development/How-to-display-image-from-document-folder-in-VF-PDF-page/m-p/152923

 

1. Create a new Saleforce document, e.g. "bandoneon.jpg".
2. Go to the detail page of the document. Near the "keyword" line, you should see "Click here to view the file". If you hover your mouse pointer of it, you should see the URL, something like "https://na5.salesforce.com/servlet/servlet.FileDo

 wnload?file=01570000000toA8". Right-click (assuming you are using MS Windows) the URL then select "Copy link location"

 

I believe its a feature of outlook of which salesforce cannot do much.

here how we can reset the outlook settings to enable them pictures.

 

http://office.microsoft.com/en-us/outlook-help/unblock-image-downloads-in-outlook-HP001085952.aspx

This was selected as the best answer
ShellBlack.comShellBlack.com

I've not tried to send the HTML image as an attachement. I've used the "standard" way of having the image stored in the document folder. I created a step-by-step tutorial on my blog: http://www.shellblack.com/salesforce/sales-cloud/html-email/

It goes though how to set up the image in the doucment folder, and then how to create the HTML template to grab the image as well as a couple of troubleshooting tips at the end.

 

Hope it helps!

 

~shell

 

www.ShellBlack.com

Certified Consultant, Administrator, Developer

IckIck

The solution I found was attaching the image and using <img src="cid:image01.jpg"> instead of <img src="http://www.example.com/image.jpg">.

 

Thanks to everybody who tried to help.