Mail Attachements src are in cid format.

UZAIR SEIKHAI 31 Reputation points
2021-07-26T08:42:12.23+00:00

I am facing an images issue in the mail body, the source of the image are in cid format which is not readable by the browser, how can I make them readable in the browser. Here are the attached screenshots.

117826-image.png

117922-screenshot-from-2021-07-26-13-29-44.png

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Scales 4,446 Reputation points
    2021-07-27T01:08:06.163+00:00

    cid means you have an inline attachment so the attachment source is a part of the message's MIMEContent and a browser won't render that by default. You could use something line MIMEKit to convert the raw Mime Message into something that the browser can render eg https://stackoverflow.com/questions/31417916/mimekit-mimemessage-to-browser-renderable-html.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.