Hi Experts,
When I try to send email from my web page (using PHP) I get the following error in my code.
I am using Dreamweaver CS3.
My php code :
<?php
$name = $_POST['name'];
$address = $_POST['address'];
$email = $_POST['email'];
$message = $_POST['message'];
$message1 = " Somaone has contacted through the website . \n
Name : $name \n
Address : $address \n
Email : $email \n
Message : $massage \n " ;
$from = " From : $email ";
mail('mail1@yahoo.com','Contact from our website', $message1, $from);
?>
Error : Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\sendmail.php on line 17
[ line 17 -> mail('mail1@yahoo.com','Contact from our website', $message1, $from); ]
Thanks in advance for all your suggestions.