I created a form to send feedback and i get the following error, what does that mean
and how to fix it.
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in c:\wamp\www\php website\php and mysql\practice files\chapter 4 - string manipulation and regular expressions\processfeedback.php on line 11
The code is as follows:
<?
$name=$POST['name'];
$email=$POST['email'];
$feedback=$_POST['mailcontent'];
$toaddress="viraj_hoober@yahoo.com";
$subject="Feedback from web site";
$mailcontent="Customer name: " . $name . "\n"
. "Customer email: " . $email . "\n"
. "Customer comments: \n" . $feedback . "\n";
$fromaddress="viraj2401@yahoo.com";
mail($toaddress, $subject, $mailcontent, $fromaddress);
?>
Thanks in advance