#20761 [Opn->Fbk]: undefined funcion mail()
ID: 20761
Updated by: derick@php.net
Reported By: davidegiunchi@libero.it
-Status: Open
+Status: Feedback
Bug Type: Mail related
Operating System: Linux 2.4.19
PHP Version: 4.3.0RC2
New Comment:
Please issue the following commands in your shell (and make sure you
have autoconf version 2.13 installed):
cd php-4.3.0rc2
rm configure
./buildconf
and rerun configure/make
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-12-02 05:36:22] davidegiunchi@libero.it
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20761&edit=1
Thread (3 messages)