I am trying to send an email using following php script.it gives me "mail sent" status but it actually does not sends mails to gmail and yahoo accounts.
<?php
$to = "xxxxx@yahoo.com";
$subject = 'subject'; // Give the email a subject
$message = '
Thanks for signing up!
Your account has been created. ';
$headers .= 'From:noreply@ccs.com' . "\r\n";
$headers .= 'Bcc:xxxxx@gmail.com' ."\r\n";
$headers .= 'Bcc:yyyyy@gmail.com' ."\r\n";
mail($to, $subject, $message, $headers);
echo "mail sent";
?>