views:

166

answers:

2

Hello,

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.

A: 

The easiest way we found was to use ChillKat's email component. http://www.chilkatsoft.com/

Alternatively you can use CDO and the Windows dll, so its a bit different to use compared to a proper .Net class.

In our case we were generating the body from a url, which is why we went that route. There may be similar solutions if you are generating the body in your code.

Matthew Hood