Hi, my name is Peter. Have you tried to replace the vbCrLf with <BR>?<BR> Tack Andreas för ditt svar, men tyvärr, samma sak händer.Line breaks with CDONTS
I have some problem sending an HTML mail with CDONTS.
I takes the values from a form, and I also give the visitor the possibilty to upload some files to be sent, attached to the mail. I use ASPUpload for that. My form have a width of 400, but when I receive the mail, there are no linebreaks, the message from the form is one looooong line.
If the visitor manualy make a linebreak (hit Enter) in the form, there is linebreake in the mail.
I have tried to set the <td width="300"> but it would not help.
Someone know how to do this???
My strBODY look like this, (in swedish)
HTML1 = HTML1 = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
HTML1 = HTML1 & "<html>"
HTML1 = HTML1 & "<head>"
HTML1 = HTML1 & "<title>Ansökan om ledig tjänst</title>"
HTML1 = HTML1 & "</head>"
HTML1 = HTML1 & "<body bgcolor=""FFFFFF"">"
HTML1 = HTML1 & "<p><font size =""3"" face=""Arial"">"
HTML1 = HTML1 & "<strong><left>Ansökan om ledig tjänst från" & vbCrLf & "<font color=""red"">" & Upload.Form ("Namn") & "</font>" & "</left></strong><br>"
HTML1 = HTML1 & "<table border=""1"" cellpadding=""3"" width=""90%"" align= ""left"">"
HTML1 = HTML1 & "<tr><td> Namn: " & "</td><td>" & Upload.Form ("Namn") & "</td></tr>"
HTML1 = HTML1 & "<tr><td> Personnummer: " & "</td><td>" & Upload.Form ("Pnummer") & "</td></tr>"
HTML1 = HTML1 & "<tr><td> E-postadress: " & "</td><td>" & "<a href=""http://mailto:"& Upload.Form ("Epostadress")&"""</a>" & Upload.Form ("Epostadress") & "</td></tr>"
HTML1 = HTML1 & "<tr><td> Meddelande: " & "</td><td>" & Upload.Form ("Meddelande") & "</td></tr>"
HTML1 = HTML1 & "</table>"
HTML1 = HTML1 & "</body>"
HTML1 = HTML1 & "</html>"
PeterSv: Line breaks with CDONTS
<BR>
Replace(Upload.Form("Meddelande"), vbCrLf, "<BR>")<BR>
<BR>
<code>
HTML1 = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">" & _
"<html>" & _
"<head>" & _
"<title>Ansökan om ledig tjänst</title>" & _
"</head>" & _
"<body bgcolor=""FFFFFF"">" & _
"<p><font size =""3"" face=""Arial"">" & _
"<strong><left>Ansökan om ledig tjänst från" & vbCrLf & "<font color=""red"">" & Upload.Form ("Namn") & "</font>" & "</left></strong><br>" & _
"<table border=""1"" cellpadding=""3"" width=""90%"" align= ""left"">" & _
"<tr><td> Namn: " & "</td><td>" & Upload.Form("Namn") & "</td></tr>" & _
"<tr><td> Personnummer: " & "</td><td>" & Upload.Form("Pnummer") & "</td></tr>" & _
"<tr><td> E-postadress: " & "</td><td>" & "<a href=""http://mailto:"& Upload.Form("Epostadress")&"""</a>" & Upload.Form ("Epostadress") & "</td></tr>" & _
"<tr><td> Meddelande: " & "</td><td>" & Replace(Upload.Form("Meddelande"), vbCrLf, "<BR>") & "</td></tr>" & _
"</table>" & _
"</body>" & _
"</html>"
</code>Sv: Line breaks with CDONTS
Jag fattar inte detta!
Någon annan som gör det??
Peter