Riva -
I have a similar script in that it loops through the variables of the form.
However, it's being sent as HTML. With that, I'm just using the <br> tag -
which works great. It also then allows me to <strong>bold</strong> my
objects, and it makes for easier reading by the recipient.
I'm not sure how many variables your form might have, but you could also add
an IF statement so that if something was blank, it wouldn't add it to the
email body.
Todd
For Each obj in request.form
if obj <> "" then
body = body & "<strong>" & obj & "</strong>: " &
request.form(obj) & "<br><br>"
end if
next
-----Original Message-----
From: Portman [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 16, 2006 12:34 AM
To: [email protected]
Subject: [wdvltalk] ASP question again
Hi all,
My ASP script is working great (thanks again) but I find the e-mail
comes out all on one line, like this:
Form Field Values realname : (name) email : (email)
This is the code:
For Each obj in request.form
body = body & obj & " : " & request.form(obj) & vbCrLf
Next
body = body & ""
Is there a way to make it appear all on separate lines, like so?
Realname: (name)
Email: (email)
TIA,
Riva
____ The WDVL Discussion List from WDVL.COM ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.