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
cruiserDancruiserDan 

how to merge image into HTML email template

Hello,

 

We're trying to setup email stationary that includes a small profile photo of each user in the signature. Because the body must be editable I understand HTML templates that use the Letterhead are the only option, rather than Custom HTML templates. I've tried setting up a user field called "Photo URL" as a text field with sample data as...

 

<img src="http://content.cleancruising.com.au/images/team/anna.jpg" width="128" height="119" /><bR />

 

However this just embeds this line as text within the email rather than as HTML. Any ideas on how to achieve this would be terrific.

 

--Dan

Best Answer chosen by Admin (Salesforce Developers) 
AmitSahuAmitSahu

The "Photo URL" field is just of type text. Try changing it to  Text Area (Rich)...

All Answers

AmitSahuAmitSahu

The "Photo URL" field is just of type text. Try changing it to  Text Area (Rich)...

This was selected as the best answer
cruiserDancruiserDan

Thanks this worked! For the email layout I'm using "Free Form Letter" which uses a centered layout. Is there anyway to change this so the template can be left aligned by default?

ethanoneethanone

I'm using a rich text area to store a photo, but I'm actually using the "insert/edit" image button.  My image displays fine in visual force page and in the email template preview, but when I send the email, the recipient just gets an image place holder - no image.  It looks like a security setting on the image. Do you know how I can fix this?

Gavin Powell 1Gavin Powell 1
Using dataloader you can export the Value of the Letterhead record and clear the <center> tags and update ammended Value field