question

UZAIRSEIKHAI-1445 avatar image
0 Votes"
UZAIRSEIKHAI-1445 asked GlenScales-6756 answered

Mail Attachements src are in cid format.

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-graph-mail
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

GlenScales-6756 avatar image
0 Votes"
GlenScales-6756 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.