This topic is locked

vbCrLf

10/10/2006 3:59:54 AM
ASPRunnerPro General questions
hanb author

I am trying to write some code, (novice in asp) but this code below print all on one line. How do I get it forced to new line as vbCrLf does not seem to work
objMail.Body = "Email: " & strEmail & vbCrLf &

"Name: " & strName & " " & strName2 & vbCrLf &


"Comments: " & vbCrLf & strComments & vbCrLf &

"Voor informatie over het programma zie:" & vbCrLf &


"http://www.basketballweek.nl/ Link naar Haarlem BasketballWeek"
Han

J
Jane 10/10/2006

Han,
you can use
instead of vbCrLf:

objMail.Body = "Email: " & strEmail & "
" &

"Name: " & strName & " " & strName2 & "
" &

"Comments: " & vbCrLf & strComments & "
" &

"Voor informatie over het programma zie:" & "
" &


"http://www.basketballweek.nl/ Link naar Haarlem BasketballWeek"



Then open include/commonfunctions.asp file, find sendmail function, locate following line:

myMail.TextBody= message



and replace it with this one:

myMail.HTMLBody= message