Hai!
'k Heb de volgende code van een site geplukt om plaatjes met een HTML mail mee te sturen:
<%
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Importance = 1
objMail.From = request("strName") & "<" & request("strEmail") & ">"
objMail.To = request("strTo")
objMail.Subject = "Example of HTML EMail with Embeded Image"
' this is my messages HTML
strMsg = "" & _
"<html><body bgcolor=red>" & _
"<a href=""http://www.RealWorldASP.com/"">[img]""logo.gif""[/img]" & _
"</a><p><font face=verdana>Example of a HTML Email with embedded Image<P><br>" & _
request("message") & _
"</body></html>"
' set the format of the email to html, etc
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = strMsg
' attach our image file and set the url to simply logo.gif
objMail.AttachURL server.MapPath("logo.gif"), "logo.gif"
objMail.Send
' destroy the email object
Set objMail = Nothing
%>
Nu werkt dit prima in Outlook en b.v. Hotmail, maarrr in Lotus Notes krijg je de afbeelding niet te zien
Heeft iemand een idee hoe je dit wel voor elkaar krijgt?
Tnx.
'k Heb de volgende code van een site geplukt om plaatjes met een HTML mail mee te sturen:
<%
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Importance = 1
objMail.From = request("strName") & "<" & request("strEmail") & ">"
objMail.To = request("strTo")
objMail.Subject = "Example of HTML EMail with Embeded Image"
' this is my messages HTML
strMsg = "" & _
"<html><body bgcolor=red>" & _
"<a href=""http://www.RealWorldASP.com/"">[img]""logo.gif""[/img]" & _
"</a><p><font face=verdana>Example of a HTML Email with embedded Image<P><br>" & _
request("message") & _
"</body></html>"
' set the format of the email to html, etc
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = strMsg
' attach our image file and set the url to simply logo.gif
objMail.AttachURL server.MapPath("logo.gif"), "logo.gif"
objMail.Send
' destroy the email object
Set objMail = Nothing
%>
Nu werkt dit prima in Outlook en b.v. Hotmail, maarrr in Lotus Notes krijg je de afbeelding niet te zien
Heeft iemand een idee hoe je dit wel voor elkaar krijgt?
Tnx.