Convert this VB command to vb.net?

  • Thread starter Thread starter Rob T
  • Start date Start date
R

Rob T

Here is a vb snippet that builds an HTML formatted email and embeds an image
into it:

objEmail.HtmlBody="<img src=CID:1>"
objEmail.HtmlEmbeddedObjs.Add Item.Path, 1, ItemOriginalPath
objEmail.SendMail

I can't find the equivalent in .net where you can assign a CID to an image
tag. If you try to attached the image in .net, you get mixed results (i.e.
Outlook express can't display it properly, Outlook 2000 looks fine, but also
shows that you have an attachment). I have found a couple of people selling
email packages that embeds the image.... >:-(

Ho do you do this in .net?

Thanks. -Rob T.
 
Hi Rob,

Interesting, I assume that before this is a Set or someting to the object,
do you know what is the class you are using in this?
objEmail.HtmlBody="<img src=CID:1>"
objEmail.HtmlEmbeddedObjs.Add Item.Path, 1, ItemOriginalPath
objEmail.SendMail

Cor
 
My apologies... The email object was calling a 3rd party class... I was
looking through some old code and didn't realize it was in there.

I would still like to know how to embed a email image without using a 3rd
party package........
 
Hi Rob,
My apologies... The email object was calling a 3rd party class... I was
looking through some old code and didn't realize it was in there.

I would still like to know how to embed a email image without using a 3rd
party package........

Therefore I said interesting, because that is a big wish from a lot of
people.

Cor
 
Back
Top