[PHP] Newline features and differences between php3 and php4

2002-04-18 Thread Chris Hall

Morning all,
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?

Thanks in advance.

--
Chris Hall
hardwired industries



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newline features and differences between php3 and php4

2002-04-18 Thread Miguel Cruz

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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newline features and differences between php3 and php4

2002-04-18 Thread Jason Wong

On Friday 19 April 2002 04:58, Richard Archer wrote:

 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.

The manual is correct. See:

http://cr.yp.to/immhf/header.html

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
The trouble with superheros is what to do between phone booths.
-- Ken Kesey
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php