Re: Newline features and differences between php3 and php4

From: Date: Thu, 18 Apr 2002 20:58:10 +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-93601@lists.php.net to get a copy of this message
At 8:24 AM -0700 18/4/02, 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? Sounds to me as if you have an extra newline in there. The first blank line indicates to the MTA/MUA the end of the headers and the start of the message body. Note that (IMHO) the manual page for mail() is wrong. I believe the line endings used to separate headers should be the system's native line endings. Not "\r\n". Using "\r\n" on a Unix box can cause some MTA's (qmail, in particular) to imagine *two* line endings, thus ending your headers. ...R.

« previous php.general (#93601) next »