Jump to content

Sending textarea in e-mail


Recommended Posts

I have a form with a textarea on it, after it is submitted I want to send a mail with that same textarea with the same value and format, carriage returns included, but the carriage returns are ommitted :) This is a snippet of the code I'm using

<%htmlBody = htmlBody & "<textarea>" & request.form(textAreaField) & "</textarea>"%>

I have tried replacing the vbcrlf characters with <BR> but that does not help, anyone any ideas ?

Link to comment
Share on other sites

  • 3 weeks later...
try replacing the "\r" and "\n" characters...these 2 chars make up a carriage return. in ASP.Net I have to replace both of them to get rid of returns in a textarea

Get rid of them ? No, no, that's just the point I want them to stay !So I can have a textarea on the next screen with exactly the same lay-out as the previous one !!!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...