JMail v. 3.7 + HTML
Hvorfor får jeg dette underlige resultat:---NEXT--46534FF4-2C2D6121-224CE589
Content-Transfer-Encoding: Quoted-Printable
Content-Type: text/plain;
charset=so-8859-1\"
----NEXT--46534FF4-2C2D6121-224CE589
Content-Transfer-Encoding: Quoted-Printable
Content-Type: text/html;
charset=so-8859-1\"
Når jeg bruger følgende kode:
Set JMail = Server.CreateObject(\"JMail.SMTPMail\")
JMail.ContentType = \"text/html\"
JMail.ServerAddress = mailserver
htmlText = \"<!DOCTYPE HTML PUBLIC \"\"-//W3C//DTD HTML 4.0 Transitional//EN\"\">\"
htmlText = htmlText & \"<html>\"
htmlText = htmlText & \"<head>\"
htmlText = htmlText & \"<title>\" & strEmne & \"</title>\"
htmlText = htmlText & \"</head>\"
htmlText = htmlText & \"<body bgcolor=#FFFFFF><font face=verdana size=3>\"
htmlText = htmlText & \"<p><font size=5 color=660000>\"
htmlText = htmlText & strOverskrift & \"</font></p>\"
htmlText = htmlText & \"<p>\" & strHilsen & \" \" & strNavn & \"</p>\"
htmlText = htmlText & strVelkomst
htmlText = htmlText & \"<p align=\'center\'><b> Dit \" & strBruger & \" er: \"
htmlText = htmlText & strBrugernavn & \"</p>\"
htmlText = htmlText & \"<p align=\'center\'>Dit Password er: \" & strPassword & \"</b></p>\"
htmlText = htmlText & \"<p>\" & strTekstEt & \"</p>\"
htmlText = htmlText & \"<a href=\'\" & strLink & \"\'>\" & strLink & \"</a>\"
htmlText = htmlText & \"<p>\" & strTekstTo & \"</p>\"
htmlText = htmlText & \"</body>\"
htmlText = htmlText & \"</html>\"
JMail.Sender = Email
JMail.AddRecipientEx strEmail, strBrugernavn
JMail.Subject = strEmne
JMail.HTMLBody = htmlText
JMail.Execute
Set JMail = Nothing
