?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?fatal error underfined function mail ( )
Author:?airhead?(---.ipt.aol.com)
Date:???06-09-03 15:29

how can i fix this error

Fatal error: Call to undefined function: mail() in /users/coolfreepage.com/anhhuan/phpreview_mail.php on line 84

?Re: fatal error underfined function mail ( )
Author:??(213.146.146.---)
Date:???06-09-03 23:26

Show the code around line 84.

?Re: fatal error underfined function mail ( )
Author:?airhead?(---.ipt.aol.com)
Date:???06-10-03 17:07

here is the code. is there anything i can instead of mail()

$UserMessage .= "Dear $UserName,\n";
$UserMessage .= "Thank you for completing Contact Form at $SiteName\n";
$UserMessage .= "Your request will be processed shortly. All replies will be sent to $UserEmail.\n";
$UserMessage .= "Please keep this e-mail handy for future reference.\n\n";
$UserMessage .= "\n";
$UserMessage = "$UserName, Submitted the following Information:\n\n";
$UserMessage .= "Name: $UserName\n";
$UserMessage .= "Email: mailto:$UserEmail\n";
$UserMessage .= "Phone: $UserPhone\n";
$UserMessage .= "Subject: $UserSubject\n";
$UserMessage .= "Comments: $UserComments\n";
$UserMessage .= "\n";
$UserMessage .= "Best regards, $SiteUserName\n $SiteName Administration\n mailto:$SiteEmail\n\n";
$UserMessage.= "\n";
$UserMessage.= "\n";
mail("$UserEmail", "$ThankYouMessage", $UserMessage, "From: $SiteEmail");
$AdminMessage = "$UserName, Submitted the following Information:\n\n";
$AdminMessage .= "Full Name: $UserName\n";
$AdminMessage .= "Email: mailto:$UserEmail\n";
$AdminMessage .= "Phone: $UserPhone\n";
$AdminMessage .= "Subject: $UserSubject\n";
$AdminMessage .= "Comments: $UserComments\n";
$AdminMessage .= "\n";
$AdminMessage .= "$HTTP_USER_AGENT - $ip\n";
mail("$SiteEmail", "$SiteName - Contact Submission", $AdminMessage, "From: $UserEmail");
?>

Go to Top??|??Go to Topic??|??Threaded View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??

Provided By
Phorum