We are using a servicedesk application which is sending out e-mail using Exhange Web Service (EWS). But when sending e-mail with images (usually screenshots) the images is not showing. When right clicking an choosing view source in Outlook, we can se that the broken image har coding like this:
<img width=100 height=100 id="1" src="cid:<helge.jpg>">.
The image is broken also on webmail client like Gmail, Outlook.com.
The funny thing is that the image is displaying correctly when sending from the Servicedesk application to a user one the same Exchange server.
Our programmers have looked at the documentation for EWS:
And the programmers of the ServiceDesk applcation have provived the code they use for EWS:
fileAttachment.ContentId = string.Concat("<", str, ">");
So based on the example from Microsoft, they add < and > around the id, but the example from Microsoft does not.
Our programmers made a explample using :
email.Attachments[0].ContentId = "WithoutAnglebrackets.jpg";
email.Attachments[1].ContentId = "<WithAnglebrackets.jpg>";
This resulted that the first attachment is showing in the Email, but not the other.
The servicedesk programmers is refering to https://www.rfc-editor.org/rfc/rfc2392, that the anglebrackets is allow.
They also is telling us that the application is working on their Exchange 2010. (We are using Exchange 2013).
So is this a Exchange problem? Or the the programmer wrong with adding anglebrackets?