Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Fatal error??

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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" );
?>
Alienz
New php-forum User
New php-forum User
 
Posts: 13
Joined: Wed Jan 29, 2003 8:24 am

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

Which version of php are you using??
http://localhost/info.php
User avatar
Joan Garnet
Moderator
Moderator
 
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars

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

I not using localhost. I using a web host that support PHP4.
Alienz
New php-forum User
New php-forum User
 
Posts: 13
Joined: Wed Jan 29, 2003 8:24 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.
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 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?
Alienz
New php-forum User
New php-forum User
 
Posts: 13
Joined: Wed Jan 29, 2003 8:24 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 ...
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

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

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


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.