Re: Newline features and differences between php3 and php4
| From: | Miguel Cruz | Date: | Thu, 18 Apr 2002 15:44:58 +0000 |
| Subject: | Re: Newline features and differences between php3 and php4 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93553@lists.php.net to get a copy of this message | ||
On Thu, 18 Apr 2002, Chris Hall wrote:
> I'm using the mail() function on a project for a client. His hosting
> provider currently offers php3, meanwhile I've been developing in php4. So
> far, I don't haven't found any problems other than the following:
> In php4, inside the mail function I use newline definitions to seperate
> data, and it works terrific. But in php3 mail() doesn't seem to parse the
> newline tags, and it prints them in the email body. Workarounds/fixes?
I don't think that's really what's happening. The newline tags (\n) are
interpreted when the string is parsed, long before anything makes it to
the mail() function.
Do you have a brief but relevant code snippet?
miguel