Trying to embed images in email templates

I am trying to embed company headers into email templates and I am following the following link Embedding Images in Emails - SugarCRM Support Site . I attach the image and when I save the template the image appears on the template display screen, but when I send the email the image doesn’t display when received. I have tried this on my office 365 outlook and Gmail accounts and both don’t show the images but they are attached. I have checked the code in the template using the tool option:

<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;"><br style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px auto;" /><img style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px; float: left;" src="public/bacba306-d00e-356b-dbfa-61d437456874.JPG" alt="TOC2" height="131" /></p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;"><img style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px; float: right;" src="public/44de478b-65b3-30dd-d7bd-61d43778e5b1.JPG" alt="" height="131" /></p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">Dear&nbsp;&nbsp;$m2_course_info_first_name&nbsp;$m2_course_info_last_name</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">Student Number:&nbsp;$m2_course_info_name</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">You have registered for the following course: $m2_course_info_course_name_c which will start on the completion of your Personal learner Profile at the following Link: <a style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px auto;" href="https://www.theopencollege.com/enquiry-form/">Click here</a></p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">The Learning Centre,<br style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px auto;" />Leopardstown Business Centre,<br style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px auto;" />Ballyogan Road,<br style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px auto;" />Leopardstown,<br style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px auto;" />Dublin 18,<br style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px auto;" />D18 KX34.</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">Email: <a style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px auto;" href="mailto:info@theopencollege.com">info@theopencollege.com</a></p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">Phone: +353 1 2061828 and +353 1 2061829</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px;">&nbsp;</p>
<div class="mozaik-clear" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 22.4px; color: #444444; padding: 0px; margin: 0px; height: 0px;">&nbsp;</div>

Please see the code.

Thanks Ken Clancy

Yes, incorrect URL.
Look at your “SRC” seems to be completely incorrect, it does not follow any photo …
(*) In this code is wrong: src = “public / bacba306-d00e-356b-dbfa-61d437456874.jpg”

  1. / correct the URL: src = “https://www.w3schools.com/html/img_girl.jpg” :: Try if you see the girl?
    2./ Or upload to your host and get “full URL” :: src = “https://my-demosite.com/upload/demo-photo.png”

Good luck!

Hi Hoasenvang7799,

We adjusted the image URL as you said and the images appear when I send the email directly to my outlook account but when I send them to Gmail or Yahoo account they appear as broken images.

I also tried sending the email as part of a workflow and the images didn’t work on any account I sent it to, they all show as broken images in Outlook, Gmail, and Yahoo, is there an additional setting required for images in email templates through Workflows,

Please help

Thanks
Ken

Hi Hoasenvang7799,
Thanks you for your assistance, we have resloved this issue, we added the images required to our main site and adjusted the code in the email template to reflect the change and it works.

1 Like