Image with mail
I am sending an HTML mail and in mail there is a logo of the company as wel the code is given below
strHTML = "<html>"& chr(13) & chr(10)
strHTML = strHTML & "<head>" & chr(13) & chr(10)
strHTML = strHTML & "</head>" & chr(13) & chr(10)
strHTML = strHTML & "<body>" & chr(13) & chr(10)
strHTML = strHTML & "<table width=""50%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">" & chr(13) & chr(10)
strHTML = strHTML & "<tr><td width=""0%"" height=""152""> </td> " & chr(13) & chr(10)
strHTML = strHTML & "<td width=""30%""><div align=""right[u]""><img src=""www.nsonsgroup.com/images/logo.png"" width=""54"" height=""68""></div></td>" & chr(13) & chr(10)</u> strHTML = strHTML & "<td width=""39%"" valign=""middle"" class=""groupheading""><strong>NSON'S</strong> "& chr(13) & chr(10)
strHTML = strHTML & "<strong>GROUP</strong></td>" & chr(13) & chr(10)
strHTML = strHTML & " <td width=""31%"" valign=""top"" class=""groupheading"">"& chr(13) & chr(10)
strHTML = strHTML & "<div align=""left""> <p> </p>" & chr(13) & chr(10)
strHTML = strHTML & "<p><strong><br>" & chr(13) & chr(10)
strHTML = strHTML & " ®</strong></p></div></td>" & chr(13) & chr(10)
strHTML = strHTML & "</tr></table>" & chr(13) & chr(10)
strHTML = strHTML & "<table width=""708"" border=""0"" cellspacing=""0"" align=""center"" cellpadding=""0""><tr><td height=""132""> </td><td width=""685"" align=""left"" valign=""top"" >" & chr(13) & chr(10)
HTML = "</td></tr></table><br><BR><BR>"
HTML = HTML & "<table width=""708"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"
HTML = HTML & "<tr> <td >"
HTML1 = "</td></tr><tr><td>"
strHTML5 = "<td align><div align=""right""><a href=""http://www.nsonsgroup.com"" target=""_blank"">http://www.nsonsgroup.com</div></a></td></tr><tr><td>Cel No "
strHTML1 ="</td> <td ></td></tr></table></td></tr></table><BR>"
strHTML1 = strHTML1 & "<table width=""708"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"
strHTML1 = strHTML1 & "<tr> <td> </td> <td valign=""top"">"
strHTML1 = strHTML1 & "<p align=""center""> Rawal Plaza, Westiredge I Market Peshawar Road Rawalpindi Paksitan<br>"
strHTML1 = strHTML1 & "Ph 0092515465119, 5465148 Fax 5481579 </p>"
strHTML1 = strHTML1 & "</td> <td> </td>"
strHTML1 = strHTML1 & "</tr></table>"
Set Mail = Server.CreateObject("Persits.MailSender")
' enter valid SMTP host'
Mail.Host = strHost
Mail.From = Session("email") ' From address'
Mail.FromName = Session("name") ' optional'
Mail.AddAddress Request("To")
Mail.AddBcc Request("CC")
' message subject'
Mail.Subject = Request("Subject")
' message body'
Mail.IsHTML = True
Mail.Body = strHTML & Request("Body") & HTML & Session("name")& HTML1 & objRS2("Designation") & strHTML5 & Session("mob") & strHTML1
' Mail.Body = Request("Body")
strErr = ""
bSuccess = False
On Error Resume Next ' catch errors'
Mail.Send ' send message'
If Err <> 0 Then ' error occurred'
strErr = Err.Description
else
bSuccess = True
End If
The above underline code is the image path which I send with mail but the problem is that Hotmail and Yahoo like servers drop the external links. So the logo cannot seen when the mail recieved
So if there is a solution of this problem then it wil be highly appreciated .
Thanx in advance
Love 4 all
__________________
(*_*)
Numan
--------------------------------------------------
It is not important what you get But important is how you got it
|