From: [EMAIL PROTECTED] Operating system: Linux 2.4.19 PHP version: 4.3.0RC2 PHP Bug Type: Mail related Bug description: undefined funcion mail()
I'm using php on apache2.0.43 and i've upgraded from php-4.4-dev to php-4.3RC2 and i get this error on a formmail based on php: PHP Fatal error: Call to undefined function: mail() in /web/htdocs//home/mail_guest.php on line 15 Here it's the html that do the post: ---------- html> <head> <meta http-equiv="Content-Language" content="it"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>mail in php</title> </head> <body> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" width="90%"> <tr> <td width="100%" align="center"> <form method="POST" action="mail_guest.php"> <p><font face="Verdana" size="1"> </font></p> <p></center><font face="Verdana" size="1"><input type="text" name="titolo" size="20"> titolo della mail</font></p> <center> <p><font face="Verdana" size="1"><textarea rows="4" name="messaggio" cols="28"></textarea>testo della mail</font></p> <p><font face="Verdana" size="1"><input type="submit" value="Invia" name="B1"><input type="reset" value="Reimposta" name="B2"></font></p> <input type="hidden" name="indirizzo" value="[EMAIL PROTECTED]"> </form> <p> </center></td> </tr> </table> </div> </body> </html> --------- and here it's the mail_guest.php -------- <html> <head> <title>invio_mail_php_ricezione</title> </head> <body bgcolor="#ffcb8c"> <p><font face="Verdana" size="1"> <? { mail($indirizzo, $titolo, $messaggio); echo "Messaggio spedito a: " . $indirizzo ."<br>"; echo "Oggetto: " . $titolo ."<br>"; echo "Body: " . $messaggio ."<br>"; } ?> </font></p> </body> </html> ------------------ Before upgrade to php-4.3RC2 this script works. I've compiled with this options: './configure' '--with-mysql=/usr' '--with-jpeg-dir=/usr/lib/' '--with-zlib' '--with-png-dir=/usr/lib' '--with-config-file-path=/web/conf/' '--with-apxs2=/web/bin/apxs' '--with-gd' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' Regards. -- Edit bug report at http://bugs.php.net/?id=20761&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20761&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20761&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20761&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20761&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20761&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20761&r=support Expected behavior: http://bugs.php.net/fix.php?id=20761&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20761&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20761&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20761&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20761&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20761&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20761&r=isapi