I’ m taking an internship and facing with some problems.
I m working in a ASP page that send emails.
To “assemble” and send the emails I m using the follow commands:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mym...@mydomain.com"
myMail.To="som...@somedomain.com"
myMail.CreateMHTMLBody "file://c:/mydocuments/test.htm"
myMail.Send
set myMail=nothing
Sometimes the images inside the page don’t work properly, because some
emails server like yahoo and hotmail, detect the message as spam, and
don’t permit to show the images.
So my question is:
Is there a way to embedded image in the email body, and all emails
provider/server accept it?
If yes, how can I do that?
Thanks in advance.
Daniel Panex
--
panex
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
To embed that image use this code:
myMail.AddRelatedBodyPart "c:/images/image.jpg", "image.jpg", 1
Hope that works for you.
Ron H
"panex" <panex....@mail.codecomments.com> wrote in message
news:panex....@mail.codecomments.com...
Any other way?
Just add "CID:" in the image url like:
<img src="cid:image.jpg">
And it seems to work perfectly!