Sending an email with an image embedded in the body from C#

Patrik picture Patrik · Dec 17, 2009 · Viewed 25k times · Source

My problem is how to send an email with attachemnts to the default mail client programmatically.

My requirements are:

  1. setting destination, CC, BCC
  2. link to attachment(s)
  3. adding and image like a banner in the message body

I succeded to compose an email in the various ways and adding attachments are not the problem but adding an embedded image is.

I had composed the message body as HTML and had integrated the image Base64 encoded but Outlook and Outlook Express does not recognized the image. Why?

Does anybody have a solution to my problems.

I solved a part of my problems calling MAPI.

Answer