I want to send an Email over the SharePoint Online Email send API, but I want to attach and show an image as a logo.

I can convert the image to a base64 source, but it only shows the sources. I want to see the image not only text.

Here is my Screenshot.

enter image description here

1 Answer 1


To show the image in email body, you have to use the img tag instead of a tag.

For example:

<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />
  • Thank you! That was easy, but it shows the attachment. Can I get ride of it?
    – Matthias
    Oct 21, 2022 at 12:39
  • Is it showing image in email body as well as image an email attachment? Oct 21, 2022 at 12:50
  • Hi @Matthias, can you please Upvote(^) and accept it as an Answer? Your action on this thread will be greatly appreciated! Aug 3, 2023 at 11:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.