Recent Changes - Search:

PmWiki

pmwiki.org

00976

Summary: Notify doesn't work if safe_mode is enabled
Created: 2007-09-14 12:00
Status: Open
Category: Bug
From: tiwoc?
Assigned:
Priority: 54
Version: 2.1.27
OS: Apache/2.0.54 (Fedora), PHP 5.0.4

Description: If PHP's safe_mode is enabled, scripts/notify.php silently fails. This is due to the following restriction (quoted from http://www.php.net/manual/en/function.mail.php):

"The additional_parameters parameter is disabled in safe_mode and the mail() function will expose a warning message and return FALSE when used."

Possible fix: change line 179 of scripts/notify.php from

mail($m, $subject, $mbody, $NotifyHeaders, $NotifyParameters);

to the following:

mail($m, $subject, $mbody, $NotifyHeaders);

Edit - History - Print - Recent Changes - Search
Page last modified on March 12, 2008, at 03:27 PM