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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...