Posted on: 08/04/04 04:28pm
By: robinbowes
Hi,
I'm struggling to resolve my mail sending errors.
I'm running geeklog-1.3.10cvs.
with backend=>smtp, I get this error:
pear_error: message="unable to set sender to [@]
" code=0 mode=return level=notice prefix="" info=""
with backend=>mail and have_pear=false I get:
Fatal error: Call to undefined function: mail() in /var/www/robinbowes.com/geeklog/main-CVS/system/pear/Mail/mail.php on line 109
with backend=>mail and have_pear=true I get:
Fatal error: Call to undefined function: mail() in /usr/share/pear/Mail/mail.php on line 109
Sendmail works but the return-path header doesn't get set.
Any idea how to fix this?
R.
mail errors
Posted on: 08/06/04 04:35pm
By: Dirk
[QUOTE BY= robinbowes] Fatal error: Call to undefined function: mail() in /usr/share/pear/Mail/mail.php on line 109[/QUOTE]
This seems to indicate that the PHP version that is running on your server does not have the 'mail' function. Probably some restriction set up by your hosting service.
bye, Dirk
mail errors
Posted on: 08/06/04 04:52pm
By: Anonymous (Robin Bowes)
[QUOTE BY= Dirk] [QUOTE BY= robinbowes] Fatal error: Call to undefined function: mail() in /usr/share/pear/Mail/mail.php on line 109[/QUOTE]
This seems to indicate that the PHP version that is running on your server does not have the 'mail' function. Probably some restriction set up by your hosting service.
[/QUOTE]
Dirk,
I host the server myself.
It's a Fedora Core 1 box with php installed "out-of-the-box" from the standard Fedora RPM.
What do I need to install/configure to get the "mail" function to work?
R.
mail errors
Posted on: 08/06/04 05:01pm
By: Dirk
[QUOTE BY= Robin Bowes] What do I need to install/configure to get the "mail" function to work?[/QUOTE]
'mail' is activated on a standard build of PHP. I wouldn't even know off-hand how to not include it.
There's an option in the php.ini that lets you disable functions - see if it is listed there:
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions =
If that wasn't it, then it may not be built into PHP, in which case you may have to compile your own version ...
bye, Dirk