[pmwiki-users] possible bug in notify.php
Patrick R. Michaud
pmichaud at pobox.com
Sat Feb 3 23:36:30 CST 2007
On Sat, Feb 03, 2007 at 11:23:18PM -0500, Neil Herber (nospam) wrote:
> >>Changing this made no difference, but changing the notify.php line did.
> >>I suspect it is some oddity in PHP 5 versus 4.
> >
> >You may be correct. According to the examples in the PHP
> >documentation for the mail() function [1], having the space
> >after "From:" is correct.
> ...
> Is there an easy way to get notify to emit what it is sending the mail
> server in a human readable form? To a file, for example?
Well, the odd thing is that notify doesn't talk directly to the
mail server. The notify.php script uses PHP's mail() function
to send mail, and the "From:" header is passed as an "additional_headers"
parameter to mail(). According to the PHP docs [1], on Windows
servers the mail() function itself parses and processes the From:
header (along with Cc:, Bcc:, and Date:) instead of having an MTA
do it. So, it would seem to be a problem with the PHP mail()
function itself.
[1] http://www.php.net/manual/en/function.mail.php
However, if you want to see what notify.php is using for the
additional headers, you can do the following:
include_once('scripts/notify.php');
$HTMLFooterFmt[] = pre_r($NotifyHeaders);
This will display the value of $NotifyHeaders at the bottom of
a page (where <!--HTMLFooter--> is defined in the skin template).
Pm
More information about the pmwiki-users
mailing list