SmtpMail with content id

  • Thread starter Thread starter Ohad
  • Start date Start date
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.
 
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
 
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
 
Back
Top