From:             [EMAIL PROTECTED]
Operating system: RedHat Linux 7.1
PHP version:      4.2.3
PHP Bug Type:     Mail related
Bug description:  Undefined Function

When I try to run any script on either of my two servers (one running PHP
4.2.3 and one running a CVS build from several months ago) mail()
mysteriously crashes and spits out the following error:

PHP Fatal error:  Call to undefined function:  mail() in mailtester.php on
line 2

The code tripping the error is as follows:

<?php
mail("[EMAIL PROTECTED]", "Test", "This is a test.\nJonathan");  
echo "<html><body><p>the mail was sent</p></body></html>";
?>

This just started happening; one day everything worked fine, the next day
it just quit. I'm running with Qmail and have not changed anything with my
Qmail/PHP/Apache/Evironment settings. This occurs both through Apache as
well as through the command line.
-- 
Edit bug report at http://bugs.php.net/?id=20285&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20285&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20285&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20285&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20285&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20285&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20285&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20285&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20285&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20285&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20285&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20285&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20285&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20285&r=isapi

Reply via email to