Hi,
I have a text area on page 1 which is use for the body of the email sent on page 2
On page 2 i collect the data entered by the user (ASP Javascript), replace teh carriage returns by a BR tag and send the email.
The carriage returns seem to be replaced fine when checking on a page, however on the email where the BR tag should be it is not adding a break line, as well as that it is removing part of the text sent, can't figure it out.
I am using Jmail to send the email set as text/html
Here is the code i use to replace the \n:
// replace CR/LFs with BRs
function ReplaceCRLF(str) {
re = /\n/g;
return str.replace(re,"<BR>");
}
Thanking you for any help
Oli