Fatal error??

A

Anonymous

Guest
Hi i am new to PHP. I trying some example on php script but i got the Fatal error say "Fatal error: Call to undefined function: mail() in /users/coolfreepage.com/alienz/sendmail.php on line 2". Could anyone help me? Thanks in advance.

Code:
[u]feedback.html[/u]
<FORM method=post action="sendmail.php">
Email : <INPUT name="email" type="test"><BR>
Message : <BR>
<TEXTAREA name="message"></TEXTAREA><BR>
<INPUT type=submit>
</FORM>

[u]sendmail.php[/u]
<?
mail( "yyy@yahoo.com", "Feedback Form Results",
	$message, "From: $email" );
header( "Location: http://www.alienz.coolfreepage.com/index.html" );
?>
 
Which version of php are you using??
http://localhost/info.php
 
I not using localhost. I using a web host that support PHP4.
 
Thanks. ya i using coolfreepages web host. But why I can't use phpinfo(); too?
 
as really i don know whan i tried to use phpinfo() i have a error thare...

you can ask at support of the coolfreepages.com bout this ...
 
Back
Top