Hey all
Hoping for some help with this. I have some input text in flash, which I am sending to php which sends an email with the text as the body. My problem is that I am losing the line spaces in the email. When I trace out the string in flash, the line spaces appear in the output window just fine.
here's my actionscript:
Code:
var pcLB:RegExp = /\r\n/g;
var macLB:RegExp = /\r/g;
_URLFriendlyMessage = _URLFriendlyMessage.replace(pcLB, "\r\n");
_URLFriendlyMessage = _URLFriendlyMessage.replace(macLB, "\r\n");
here's my PHP:
Code:
$message = nl2br($message);
$mail->setText($message);
The email comes out with no linebreaks, just all the text running into itself. Can anyone help?
Thanks!
Emma.