If you are using HTML mail, you can use HTML carriage returns. For example, if the body is coming from a textarea, you'll want to use the following to put HTML carriage returns in:
<% ' ... body = request.form("textareabody") body = replace(body,vbCrLf,"<br>") ' ... %> |
If you are using plain text, then you just need to insert the VbCrLf constant to generate carriage returns. For example:
<% ' ... body = "Hello Aaron," & vbCrLf & vbCrLf & "How are you?" ' ... %> |
In JScript, you woul duse the \r\n escape sequence within the string:
<script language='jscript' runat=server> // ... var body = "Hello Aaron,\r\n\r\nHow are you?" // ... </script> |
T-SQL If you are sending e-mail from SQL Server (see
Article #2403), you can use the CHAR equivalents of a CR/LF pair as follows:
SET @msg = 'Hello Aaron,' + CHAR(13) + CHAR(10) + CHAR(13) + CHAR(10) + 'How are you?' |