> Yeah, that=92s right.
in perl:
$body=~s/\n+$/\r\n/g; # trims multiple new lines at the end of the mail
$body=~s/(?!\r)\n/\r\n/g; # replaces \n terminations with \r\n
in php:
$body=preg_replace("/\n+$/", "\r\n", $body); # trims multiple new lines at
the end of the mail
$body=preg_replace("/(?!\r)\n/", "\r\n", $body); # replaces \n terminations
with \r\n
that should do the job.
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]