hi there
hope you sort out the following error message that I got during sending a message to the local user
arning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\wamp\www\cont.php on line 18
<?
$send = $REQUEST["Submit"];
$name = $REQUEST["name"];
$email = $REQUEST["email"];
$subject = $REQUEST["subject"];
$msg1 = $_REQUEST["msg"];
if($send)
{
$from = "contact@ocs.com";
if(empty($name) || empty($email))
{
echo "You cannot leave your name or the email, please provide them <br>";
}
else
{
$msg = "Dear ".$name . "<br>".$msg1;
if(!mail($email,$subject,$msg,$from))
{
echo "Error : I could not send the message, we seem to have a problem with our email server, please try again later";
}
else
{
echo "Message sent successfully, Someone will get intouch with you shortly";
exit;