|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-02 05:41 UTC] derick@php.net
[2002-12-15 04:06 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 07:00:01 2025 UTC |
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="davidegiunchi@libero.it"> </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.