Announcements
Hello.
Is it possible to embed an attached image to email body html via the <img> tag with src = "cid:<some content id>"?
My current solution is:
1) Get ActivityMimeAttachments with "image/..." mime type related to the email
2) Get the ContentId property of these attachments
3) Add corresponding <img> tags to email description:
<img src="cid:<contentid value here>" alt = "Some image"/>
After that I save this email and send it via CRM Email router.
Recieved emails contain correct attachments and <img> tags with CIDs, but images aren't displayed in all browsers and email clients. Just empty squares with alt text.
I've googled a solution and found the following KB article: https://support.microsoft.com/ru-ru/kb/2934043. Maybe, this is the source of my problem?
Thanks.
*This post is locked for comments
I have the same requirement. @kate_t Do have the solution ?
Hello Nithya,
I'm not sure that this post meets my requirements completely. Unless I'm mistaken, Adi's answer is related to incoming emails (from external senders to CRM) and the image src like "/MicrosoftCRM/Activities/Attachment/...." is an internal CRM url. My task is embedding images in outgoing emails (from CRM to external recievers). These recievers don't have access to a server where CRM is hosted.
Nevertheless I will try this solution.
Thank you.
Hi Kate,
Please refer the link below:
André Arnaud de Cal...
294,110
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator