Fatal error??

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Alienz
New php-forum User
New php-forum User
Posts: 13
Joined: Wed Jan 29, 2003 8:24 am

Fatal error??

Postby Alienz » Wed Jan 29, 2003 8:45 am

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: Select all

[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" );
?>

User avatar
Joan Garnet
Moderator
Moderator
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars
Contact:

Postby Joan Garnet » Wed Jan 29, 2003 4:40 pm

Which version of php are you using??
http://localhost/info.php

Alienz
New php-forum User
New php-forum User
Posts: 13
Joined: Wed Jan 29, 2003 8:24 am

Postby Alienz » Wed Jan 29, 2003 11:05 pm

I not using localhost. I using a web host that support PHP4.

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Wed Jan 29, 2003 11:45 pm

coolfreepage.com is that your host ?

coolfreepage.com 0 is free hosting where is mail function is denied. sorry.

Alienz
New php-forum User
New php-forum User
Posts: 13
Joined: Wed Jan 29, 2003 8:24 am

Postby Alienz » Wed Jan 29, 2003 11:58 pm

Thanks. ya i using coolfreepages web host. But why I can't use phpinfo(); too?

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Thu Jan 30, 2003 12:20 am

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 ...

Alienz
New php-forum User
New php-forum User
Posts: 13
Joined: Wed Jan 29, 2003 8:24 am

Postby Alienz » Thu Jan 30, 2003 12:42 am

Thanks.


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot], krotbacca and 2 guests