IMAGE formula field and merge fields in HTML email templates

Messaging

Last updated 2019-06-19 ·Reference W-2217435 ·Reported By 171 users

No Fix

Summary
A formula field that uses the function IMAGE to display an image, will display the image correctly in an HTML email template preview, but will not actually include the image in emails sent.

Repro
1.- Upload an image file to a document folder in your org
2.- Make sure the file is marked as "Externally Available", and that the folder is accessible to all users with at least Read Only access
3.- Create a formula field to use this image, for example:
Object name: Contact
Field name: Image
Formula: IMAGE("https://na24.salesforce.com/servlet/servlet.FileDownload?file=01560000000wdMyQQQ", "Giraffe")
4.- Open a record to verify that the image is displayed correctly
5.- Create an email template:
HTML (Using Letterhead)
Free Form Letter
6.- Add a merge field for the formula field you created in step #3:
{!Contact.Image__c}
7.- After saving the template, use the "Send Test and Verify Merge Fields" and send a copy to yourself

You will notice the preview displayed on the screen includes the image correctly. The email you sent to yourself will have an empty square where the image should be.

Workaround
Images available on the web are successfully included in the outgoing email messages, but this might not be a suitable workaround in all situations.

Reported By (171)

Maria Lantigua Ashley Gaza Safouane Ben Mansour Michael Anderson Pawan Kumar Garvey Paraiso Sabrina Omar Govindaraj Sundaram Guillermo Pedroni Matthew Preville Shane Mattson Frances Day Krysta Kurzynski Andrey Klyuyev Johanna Hentschke Formations Admin Frank Marter Jan Drommershausen Brendan Heinz Srinandan Thoutireddy Matias Kruk Michaela Knodle Erick Molina Reshma Gupta Christy McIntosh Rob Craven Alex Kenney Kanika Mathur Xabier Etxeberria García Vincent Vuong Winder Ojeda Joshua Elsman Caramie McCollum Cherisse Taylor Katie M McAdams Madhavi Bhattad Manish Srivastava Dorel Nasso Deepak Anand Rachana Thakkar Purushotham Reddy Rodolfo Rito Stephen Stanley (#NinjaFromNZ) Frazer Lewis Michael Gill Admin Atile Sacha Villeneuve Mikhail Muzo Jessica Brown Adam Barnes Captech Administrator Sujay Kothapalli Emad Abdulrahman Lisa Eason Philip Clark Robert Wynter Adrian Rookyard Sarah Florence Husband Jim DeSando Michelle Kennedy Sylvie Serplet Baird Straughan Jhomann Carreon Dominique Bastien Trent Linton System Interface Abdul Aziz A Nadaf Anindya Chattopadhyay Yuvraj Pentayah Kobi Kufuor Sushma Mandava Jayabalan Jayaraman Kathryn Shannon Rahul Vohra Ankur Saini Mindy Taylor Norbert Wieruszewski Adam Kratzer Kris Carter Ana Fe Dumangas Tori Yungerberg Stephen Belleau Maxine Manz Jaymee Parson Leigh Gordon Samantha Cummings Data Admin Eschel Hamel Peter Herzog Colleen Benzie Heidi Mack Christine Tsin Jessica Schiller Jon Oddvar Kolnes solvis.posadas solvis.posadas Beth Wang Angela Sobrepena David Scott Katrina Watkins Brad Currier Megan Hooser Colton Lederer Joe Minik Frank van Meegen Ido Greenbaum Joleen Jaworski Stephanie Boggs Anuoluwa Ojo Taraka Venkatesh Till Klotz Frédéric CANUEL Toufik Atba Ben Atba Gevin Adams Gary Singh (CampusHelp) Sacha Villeneuve Rutvij Pathak Zach Singer Nathan Woolley Charisse Gebhart Sheila Northrop Karthikeyan Chandran Kelly Hanna Julia Doctoroff Paul Narsavage Vijay Anand Mariana Ávila Topi Thiago Mark Root Derek Carlson James Park Sara Dawson Sarah Burt S Gross Michael Rebak Scott Armitage Peter Gombos Kristin Hasna Deepak Anand James Goerke Swayam Chouksey Luis Calahorrano Dan Morris Adam Grossman Tsvety Nikolova Brent Mellow Tyler Law Tyler Law Marly Verstappen Cliff Dickey Mia Huffman Cindy Lougee Alan Guedes Atul Jawale Michael McNeill Sam Polino Miranda Williams Lev Admin Rohit Desai Chaim Brog Dina Mendes Nelson Vaz Margaret Fako David Limer Dan McLindon Janet Grant Jeff May Roger Giron Stéphane CLARET Guy Clairbois Chris Chapman Iván Velasco

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.