webForumDet fria alternativet

Problem med Hotmail när jag använder CDONTS

ASP

0 svar · 206 visningar · startad av dxilaban

Medlem sedan apr. 200429 inlägg
Frågan#1

Hej

Jag har ett problem med mitt CDONTS när jag skall skicka till en hotmail adress. Jag får fram mailet men där kommer inget innehåll min kod i CDONTS:

Set newMail = Server.CreateObject("CDONTS.NewMail")

HTML = "<!DOCTYPE HTML PUBLIC""-//W3C//DTD HTML 4.0 Transitional//EN"">" & vbCrLf
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<title>on-line</title>"
HTML = HTML & "<head>"

****************************************
HTML = HTML & strCart
******************************************
HTML = HTML & request.form("Meddelande")& "<br>"
HTML = HTML & "<b>Företagsnamn:</b> " & request.form ("Foretagsnamn") & "<br>"
HTML = HTML & "<b>Namn:</b> " & request.form("Kontaktperson")& "<br>"
HTML = HTML & "<b>Telefon:</b> " & request.form("Telefon")& "<br>"
HTML = HTML & "<b>Fax:</b> " & request.form("Fax")& "<br>"
HTML = HTML & "<b>Epost:</b> " & request.form("Email")& "<br>"
HTML = HTML & "</body>"
HTML = HTML & "</html>"
newMail.From = ""
newMail.To = request.form("Email")
newMail.Subject = ""
newMail.BodyFormat = 0
newMail.MailFormat=0
newMail.Body = HTML
newMail.Send
Set newMail = nothing
%>

258 ms totalt · 4 externa anrop · v20260731065814-full.1dc6f849
131 ms — deklarationer (db)
0 ms — hämta statistik (cache)
124 ms — hämta tråd, inlägg och bilagor (db)
126 ms — ändringar (db)