How to add image in Outlook mail message


My requirement is I want to send an image through email body (Not like an attachment)

When I used the sendoutlookmessage with html code, The receiver is not able to view my image. He is getting message like “The linked image cannot be displayed.”

I have tried Contentid also, but It doesn’tImageInOutlookMailBody_contentid.xaml (16.3 KB) worked.

Attached the bot for reference.

This can get really tricky using alternate views and inline images.
Easiest way is to convert the image into Base64 string and replace the content of the html with that value.

Attached bot for your reference.

Hope it helps.

ImageInOutlookMailBody_contentid.xaml (19.6 KB)