By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,122 Members | 1,554 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,122 IT Pros & Developers. It's quick & easy.

Carriage Return / Line feed

P: n/a
Hi,

I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/ Line
feeds?

Any help will be greatly appreciate.

Regards,

Arnoud
Jul 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
<Arnoud Oortwijk> wrote in message
news:40**********************@news.skynet.be...
Hi,

I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/ Line
feeds?


Assuming your ASP code is using VBScript (not JScript), use the vbCrLf
character. For example:

myStr = "This is line 1." & vbCrLf & "This is line 2."

Hope this helps,
Peter Foti
Jul 19 '05 #2

P: n/a
Peter Foti wrote on 01 apr 2004 in
microsoft.public.inetserver.asp.general:
<Arnoud Oortwijk> wrote in message
news:40**********************@news.skynet.be...
Hi,

I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/
Line feeds?


Assuming your ASP code is using VBScript (not JScript), use the vbCrLf
character. For example:

myStr = "This is line 1." & vbCrLf & "This is line 2."


Depending on the requirements of the email component used.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3

P: n/a
> I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/ Line
feeds?


body = body & "This is line one" & vbCrLf
body = body & "This is line two" & vbCrLf

Is that what you mean?
Jul 19 '05 #4

P: n/a
Excellent thanks all
"Randy Rahbar" <rvrahbar@_JUNKETY_JUNK_hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP12.phx.gbl...
I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/ Line feeds?


body = body & "This is line one" & vbCrLf
body = body & "This is line two" & vbCrLf

Is that what you mean?

Jul 19 '05 #5

P: n/a
if vbCrLf is specified:

vbCrLf = Chr(13)&Chr(10)
Jul 19 '05 #6

P: n/a
It's a built-in constant and doesn't need to be specified.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Maarten" <no****@pandora.be> wrote in message
news:gW*********************@phobos.telenet-ops.be...
if vbCrLf is specified:

vbCrLf = Chr(13)&Chr(10)

Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.