SmtpMail with content id

O

Ohad

Hello,

I'm trying to send an email message using c#'s SmtpMail class.
Everything, including attachments, is working properly.
My problem is this: I need to assign a content id to one of the parts of the
multipart email, for example, in order to show an embedded image:
<img src=cid:xxxx>.

How can I assign a content ID in c#?

Please cc to my mailbox: (e-mail address removed)

Thanks a lot,
Ohad Asor.
 
S

Sam Martin

you can't do that with SmtpMail class

i've got a class I've written to send Smtp messages, with auth and inline
attachments but I'm a bit reluctant to dish the complete class out.

I've just done a quick search, here's a really good article (and source) on
how to do it
http://www.codeproject.com/csharp/smtpemailer.asp

HTH
Sam
 
D

daiyue

I think you can't do it.c#'s smtpmail seems using CDO.Why do you want to
assign content ID?
If you want to embedded a image,you can just save your mail as HTML and use
CDO to do it,just as a com object.
You can read MSDN for more details.good luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top