0

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      = "[email protected]";

$subject = 'subject'; // Give the email a subject
$message = '

        Thanks for signing up!
        Your account has been created. ';


$headers .= 'From:[email protected]' . "\r\n";
$headers .= 'Bcc:[email protected]' ."\r\n";
$headers .= 'Bcc:[email protected]' ."\r\n";

mail($to, $subject, $message, $headers);

echo "mail sent";

?>
joseph
  • 105
  • 1
  • 2
  • 10

0 Answers0