Email module: Why is the inserted image not shown in the received email?

SuiteCRM version 7.10.9

In email module, the inserted image in the received email is not shown. Is this a correct behaviour?

This looks like your issue

https://github.com/salesagility/SuiteCRM/issues/5662

Funny, its’ not new, but it was being discussed today…

Just want to find out from the rest.

Do you have the same issue or is it just my system?

Sorry, I don’t have a proper test system where I can test emails right now.

But if you try some of the things mentioned on that Github issue, you will soon realize whether you’re seeing the same issue as they are. For example, try the different file types as pstevens71 describes.

I tested sending an email from Outlook with a png image inserted. But the outcome is still the same - no image shown in the received email in the Email module.

Ok, and can you please provide the URL that is behind that broken image?

Let’s go looking for that png, check if it is in your system, has correct permissions, etc.!

There is no URL. There is also no related error message in system log.

Ok… .that “cid” notation is a MIME inline image. I wonder if the inline image was sent correctly, and included in the email content. If you can get that email into some email client that has a “view source” of email option, we could check that.

See here for an example of an email source with inline image attached: https://github.com/salesagility/SuiteCRM/issues/1521#issuecomment-252877233

If the email source is ok, then it’s SuiteCRM having trouble displaying the inline image. Are we sure that this used to work? I would love to be able try the exact same email on an older version of SuiteCRM…

I am able to see the inserted image in my Roundcube webmail

Here is the partial email source

------=_NextPart_001_0038_01D46D81.1128C3C0
Content-Type: text/html;
	boundary="----=_NextPart_000_0001_01D4684C.C57F1430";
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 15 =
(filtered medium)"><!--[if !mso]><style>v\:* =
{behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"\@SimSun";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"Open Sans";
	panose-1:2 11 6 6 3 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-SG =
link=3D"#0563C1" vlink=3D"#954F72"><div class=3DWordSection1><p =
style=3D'mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:11.25pt;ma=
rgin-left:0cm;text-align:justify;text-justify:inter-ideograph;background:=
white'><span style=3D'font-size:10.5pt;font-family:"Open =
Sans",sans-serif;color:black'>Lorem ipsum dolor sit amet, consectetur =
adipiscing elit. Duis ut augue massa. Mauris in euismod mauris. Nullam =
vitae hendrerit nulla. Fusce eu libero consequat lacus cursus tempor et =
sed arcu. Sed ornare eleifend purus semper sollicitudin. Phasellus =
tempor nec felis sit amet ornare. Vestibulum sagittis placerat dictum. =
Morbi ac nisi feugiat, malesuada nunc et, iaculis lorem. Cras accumsan =
tellus at mi ullamcorper, id aliquam massa malesuada. Vestibulum eget =
massa placerat, eleifend nulla sit amet, faucibus metus. Integer at =
mauris eget ex viverra euismod egestas efficitur est. Aliquam ornare =
imperdiet elit, quis accumsan odio sodales nec. Mauris eget leo =
ultricies enim feugiat tristique nec vitae erat. Cras placerat metus =
quis volutpat malesuada. Duis pulvinar viverra tincidunt. Curabitur =
fringilla odio ultrices aliquam lacinia.<o:p></o:p></span></p><p =
style=3D'mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:11.25pt;ma=
rgin-left:36.0pt;text-align:justify;text-justify:inter-ideograph;backgrou=
nd:white'><span style=3D'font-size:10.5pt;font-family:"Open =
Sans",sans-serif;color:black'>&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img =
width=3D320 height=3D240 id=3D"Picture_x0020_1" =
src=3D"cid:image001.png@01D4684C.C4FF35D0"><o:p></o:p></span></p><p =
style=3D'mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:11.25pt;ma=
rgin-left:0cm;text-align:justify;text-justify:inter-ideograph;background:=
white'><span style=3D'font-size:10.5pt;font-family:"Open =
Sans",sans-serif;color:black'>Aenean vel dolor velit. Quisque felis =
diam, semper et arcu sed, euismod semper leo. Cras vitae neque eu velit =
pretium volutpat. Integer at tortor a lacus varius vehicula a vel dui. =
Integer ac sodales ipsum. Nam facilisis sem at odio commodo imperdiet =
sit amet id nibh. Nulla in lectus odio. Class aptent taciti sociosqu ad =
litora torquent per conubia nostra, per inceptos himenaeos. Donec et =
porttitor dui, ut vehicula magna. Vivamus in sem nibh. Pellentesque =
venenatis ex justo, a posuere nibh feugiat nec. Ut ultrices velit eu =
turpis placerat, nec maximus ex volutpat.<o:p></o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></html>
------=_NextPart_001_0038_01D46D81.1128C3C0--

------=_NextPart_000_0037_01D46D81.1128C3C0
Content-Type: image/png;
	name="image001.png"
Content-Transfer-Encoding: base64
Content-ID: <image001.png@01D4684C.C4FF35D0>

iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAO
xAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUATWljcm9zb2Z0IE9mZmljZX/tNXEAAP+QSURBVHhe
pP0HnKZXcScK10yn6ck5amaUcxbKAoHIySSDAQPGxt7Faf2td+27Xt/dtfd6d339rfN6ba8jOIAx
GQNCoIAkhHLO0iRpRpNz6p7unr7/UHWetwfJ393f98Ko3/cJJ9Sp+p+qOnXq9P/C7981eXwy8JnE
/yKmx7SYPs3/jk9OxgT+8Tv/NzltMvD/CP7Gv0nc65seeG4aC9AzVY6+85k4rvfxaEzDs6yE91Su
fk9XGbqOV/icisvfWbBK5+e42uh/bAPb6PbwlWxBtplNZVl9Wfckf+D/fKf6qHarXrYH7QQxpuGv
+oHnWYbah4rVfhSgNvCdvOaWRUwcnxZ9qIytIE1ZLu/pHwjHO/7luvgxOdX41n/1J8vkH1Y7gSt9
bDv/x/Hhe+qXx4EdZTGtzCy3+sY6apT4Yo2fRkM30CaOcUcQt1nt4nXzAPvFcZuWtEyGUPvrUr9a
wc7X+z2dwWXWM5GU8NBPRj/5iN/VDw8YeYf1iPfMOB1fmGS+n9d5X+OiG65TQ1Y/eq7xvQnU00ce
yuZNR53mWH9asSiUTeKz4in8bwJf+skQGlfQDnws+WCd5Bs1wh/ThTKFJ/ldPGg6mH5JT5be+IKt
4Dvm6+xsK9NjZrlyH3u7WaNV8qEncwRRt9rpvriYXqKZN9RuvlPy7trEh728ad5g/40f2RuVwXHU
+7wnYe/aaZardpj5JXvCHvK735Us8i/+Qbya3JO+1X7xUAmbaGlZ4/0U5TaYfE+P6sa06OdTA2jc
+PHjEHQPtDqVvRzQ0wQsN54V8WVWUgOpQtnBBJZxNYDM5bKKoThYqgPl9Ln/AgxWdpxEJAMKhAia
bqRkOzvC+vj4eA8x9BwJlvLBwlkv6x+AVE1k5cV8BC0xsjjRBJ8A4QlyIpn+ukINLZ7Xs+gfRYNl
9+UwCzCTiUiXfnRKhM828CYHzaRE31QfrqlMt7sDJre5pFlMmHzJMlmvSweDVF8TsHnH4NxeF8Dr
t94yI3jcSKtsd45NTSYuIQdGr5sZzeRdOe6Qe24h7uqpyUz05lM5FmLsbA/HWhQhWfEyYE5jKs5g
53g1mVhlJ7BwHAS+ZrXsW/Fejhee7QU9kiHnV/NutlsAnLydXVWhHC+1RENhevdpTCH8Pb9FXw6k

To clarify, this is not a new issue in 7.10.9. I have not seen it working before. Hence, I am wondering whether this is only happening to my system.

I just checked in a 7.8.x and inline images appear ok. I am not sure about 7.9, didn’t test.

I’d say you can open a new issue on GitHub with this, maybe it got broken for some reason.

Can confirm I experience the exact same issue. It was present on 7.8.3 and I just upgraded to 7.10.10 and it’s still present.

Just for reference, the issue on GitHub is this

https://github.com/salesagility/SuiteCRM/issues/6470