Click to See Complete Forum and Search --> : unable to send Image through mail using cdo.message


pabidi
12-23-2006, 05:40 AM
hi
iam using VB6.0 iam sending the mail using cdo.message.Message is receving at the other end but i want to send the image in the email text it is not working my code is below

Dim email, log, Html
Set email = CreateObject("cdo.message")
log = "<body><IMG SRC=""myImage.gif""></a><br>hello</body>"
With email

.To = "p@ddd.com"
.Subject = "something "
.From = "pa@rdd.com"
.HTMLBody = log
.Send
End With


image is stored in the folder of the project. if any one can help me will be very thank ful it is little urgent

thanks

bye

so_is_this
12-23-2006, 01:05 PM
I suppose I could be mistaken, but I believe you cannot send relative url references in emails. The reason is that the email client does not know where to go to resolve the reference -- as there is no domain or current domain path associated with the email when it is received. Instead, you must specify a full (absolute) url for such references.

russell
12-23-2006, 01:36 PM
exactly right