So, if a user enters a line break, you want to preserve it when the email is generated, right?
To do so, you need to convert Chr(13) to <BR> since you're sending an email using CDOSYS's .HTMLBody.
So, for example:
Code:
Dim strUserComments
strUserComments = Request.Form("emailComments")
If Len(strUserComments) > 1 Then
strUserComments = Replace(strUserComments,Chr(13),"<br>")
End If
What this does is converts the carriage return character to the HTML <br> or line-break tag.
So, when calling objYourObject.HTMLBody = blah & strUserComments
the <br> will be included in the output email.