Added: March/18/2005 at 12:50pm | IP Logged
|
|
|
you're most likely sending the emails in html format so the vbCrlf only adds line breaks when you view the html source as you said
so you need to do something like this
strBody = strBody & "First Name: " & Request.Form("firstname") & vbCrLf & "<br>"
Basically an html line break is inserted (not a javascipt /n which is totally not going to work)
I'd leave the vbCrlf line breaks there so the source still is readable but they can go if you dont want them there
Here is some additional info on various string constants in vbscript
Constant |
Value |
Description |
vbCr |
Chr(13) |
Carriage return |
vbCrLf |
Chr(13) & Chr(10) |
Carriage return–linefeed combination |
vbFormFeed |
Chr(10) |
Form feed; not useful in Microsoft Windows |
vbLf |
Chr(10) |
Line feed |
vbNewLine |
Chr(13) & Chr(10) or Chr(10) |
Platform-specific newline character; whatever is appropriate for the platform |
vbNullChar |
Chr(0) |
Character having the value 0 |
vbNullString |
String having value 0 |
Not the same a zero-length string (""); used for calling external procedures |
vbTab |
Chr(9) |
Horizontal tab |
vbVerticalTab |
Chr(11) |
Vertical tab; not useful in Microsoft Windows |
Edited by cwilliams on March/18/2005 at 6:22pm
__________________
Chris Williams
http://www.PowerASP.com
|