Hi all,
I want to send a mail in HTML format with embedded image. I am
using .AttachURL property to embedd this image file with the mail. but if
the mail is sent to hotmail, the image appears as embedded one, but, if it
is sent to anyother mail server, the image appeard as an attachment.
Here is the code ....
**********************************************
Str = "<html>"
Str = Str & "<head>"
Str = Str & "<title></title>"
Str = Str & "</head>"
Str = Str & "<body>"
Str = Str & "<table border=0 width=95% cellpadding=0 cellspacing=0>"
Str = Str & "<tr>"
Str = Str & "<td width=100% colspan=2>"
Str = Str & "<p align=center><font face=Verdana size=4
color=#000080><b>Heading</b></font></td>"
Str = Str & "</tr><tr><td> </td></tr>"
Str = Str & "<tr>"
Str = Str & "<td width=30% valign=top>"
Str = Str & "<img border=0 src='" & ImagePath & "' width=200></td>"
Str = Str & "<td width=70% valign=top align=left>"
Str = Str & "<p align=left><font face=Verdana size=2
color=#000080>Text</font></td>"
Str = Str & "</tr>"
Str = Str & "</table>"
Str = Str & "</body>"
Str = Str & "</html>"
Dim SendMail As New CDONTS.NewMail
SendMail.From = "A@n..."
SendMail.To = "x@a..."
SendMail.Subject = "Test Mail"
SendMail.BodyFormat = 0
SendMail.MailFormat = 0
SendMail.AttachURL txtImage, ImageName
SendMail.Body = Str
SendMail.Send
**********************************************
Do let me know, if anybody has a solution
Thanks in advance...
sameeta