I have to send mail via website. I am using mail() function for the same. The problem is mail is not being sent and i am not able to identity the issue. Please help me.
here is the code that i am using :
<?php
$to="admin@domain.com";
$headers="FROM:me@domain.com"."\r\n"."BCC:myboss@domain.com";
$subject="Customer Details.";
$message="Following are the details of the customer - NAME :".$name." CONTACT NO :".$no." ORGANIZATION & DESIGNATION: ".$od."" ;
//echo $message;
mail($to, $subject, $message, $header);
?>
Here the $variables are coming from a form. They re all good.