Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: php Mail() headers problems in OS X server 10.5



Le 7 avr. 08 à 23:57, bruno herreros a écrit :

Dear all,
When using the mail() function in php from a web page on the OSX 10.5 server (see example code below), only the first header is processed but the other headers are added to the body of the email and are not processed as header for the email.
The same exact code works just fine on the OS X10.4.11 server.


It seems to be a postfix related issue on how to handle the return characters because it works fine if I replace the \r\n by \n but then may not work right on 10.4.

Hello Bruno,

Have you tried it? I mean, to use \n on 10.4?
I just tried here on a 10.4.11 stock install, and it seems to be fully functional.
Moreover, IIRC, I never worried to user \r\n when building the $additional_headers argument of the mail() function.


According to PHP's source code, this would anyway be consistent with the handling of the other parts of the message to be sent with the help of /usr/sbin/sendmail.


Does anyone know if it this related with the latest postfix version? A change on how OS X deals with carriage returns? or a php issue?


Looks like to be a change in the /usr/sbin/sendmail binary of the postfix system. As if it didn't care anymore to check for \r\n line endings (btw, such endings don't make much sense in an interactive session on a unix box).


If a postfix issue, is there something I can change in the main.cf configuration file to make it work without having to find and fix all scripts that uses that mail function.


I fear there is no such parameter. :-(


[...]

Axel


_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden
References: 
 >php Mail() headers problems in OS X server 10.5 (From: bruno herreros <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.