Ask Search:
Community - SuccessCommunity - Success (  

SalesForce Custom HTML Templates to render the same across ALL/most Mail Clients

This image is not available because: You don’t have the privileges to see it, or it has been removed from the system

I have searched and searched and searched for a resolution to this issue to no evail.

As a company we want our first, "Initial Contact" Template (Auto-Response Template for a "Web-To-Lead"), to look as it does above (SalesForce HTML Preview). With nice images and sharp looking HTML. The HTML renders properly in the HTML preview within SalesForce, but not in ANY email client that I have found. I know someone else has to have run into this issue before, but I haven't been able to find another example. Is it even possible to make a Custom HTML Template look the same across ALL/MOST email clients?

Any help would be appreciated!!


Peter AubreyPeter Aubrey
Hi Jake,

This isn't a Salesforce problem but an email client rendering issue. Its the same as how a web page viewed using IE and say Firefox can look completely different and its all down to how the various web browser, email client, etc. vendors adhere to the HTML, CSS, etc. standards. Lotus Notes seems to be a particular bug bear for developers, and of course your recipient's email client is something you have no control over.

Take a look at the following links for inspiration / consideration / consternation!
Peter AubreyPeter Aubrey
BTW, iPhones render the emails wonderfully, I checked with a client of mine just the other day!
Jacob FarquharsonJacob Farquharson
Thanks for the quick response! But, what I don't understand is, the email service we use (MailChimp) can send the SAME HTML template to thousands of email addresses with SEVERAL different email clients with NO PROBLEM. It seems as if there is something happening to the HTML before it gets sent. Any thoughts?
Community - SuccessCommunity - Success ( 
I understand that it is most likely a "Client" issue. But, what I don't understand is, when we send the SAME email template from MAILCHIMP(That send's it to thousands of emails and MULTIPLE clients), it doesn't have any issue with rendering.
Jesse PakinJesse Pakin
This might not be the precise answer you're looking for, but browsers embedded in email clients are not as flexible/forgiving as Chrome, Fx, etc.

Consider: Maybe MailChimp surrounded your HTML email with true HTML tags, or put the proper encoding header above the HTML portion, and salesforce handled this differently.

Don't assume that what you put into the editor is exactly what is distributed at the other end.

On the receiving side, you can see the 'true' output by viewing the 'raw' email. You can use 'Show Original' in GMail. Not sure how to do this in Outlook but I recall there is a way.

Also, something worth considering is that not all tags and techniques are supported.

Example: I had a style-sheet driven table with alternating row colors which looked fine in SF but wouldn't display in GMail. When I used the 'bgcolor' attribute in the <tr> tags, it worked in both. I kept the bgcolor and <style> to try to maximize the odds it would display properly.

This HTML email stuff is tricky!