Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
I have a problem need help!!!
Old 11-05-2005, 12:43 AM I have a problem need help!!!
Junior Talker

Posts: 3
Trades: 0
I have a web site and every time I try to set up a user account I get this error message.

Fatal error:call to undefind function:mail()in/home/Filenet/public_html/includes/Email.php on line 5

Can anybody tell me what this error means and maybe how to fix it ?


Thanks for your time
agreater is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-05-2005, 03:08 AM
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
I'm no PHP master but I would say that you are trying to call a function that has either not been declared or that the particualr page does not reference the php file that contains the function.

whatever file contains the function mail should be added to the top of email.php as:

[php]
<?php
include_once ("file.php"); //replace file.php with file containing the mail function
?>

You may also want to post your code if this doesn't help.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-05-2005, 03:24 AM
Junior Talker

Posts: 3
Trades: 0
Thanks for your help.
agreater is offline
Reply With Quote
View Public Profile
 
Old 11-05-2005, 05:16 PM
jazee's Avatar
Super Talker

Posts: 121
Location: Westminster, CO / Denver
Trades: 0
The mail() function can be seen from any page. It is a global function in PHP. So that shouldn't be the problem. I have got this error before on a local set up webserver.The reason was because I didn't have the smtp server set up on the webserver as well. So with out a server to send the email out on it wont work. If this website is being hosted for you they may not allow this function to be used as well. Some web hosts that are free or cheap don't support this service do to the bandwidth and other factors.
jazee is offline
Reply With Quote
View Public Profile Visit jazee's homepage!
 
Reply     « Reply to I have a problem need help!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.67812 seconds with 12 queries