I am trying to send mails to yahoo and gmail to from my site but the mails are not delivered.And if I use the test account from my site then it is delivered. The script I am using as:
<?php
$to = "[email protected]";
$fromname = "[email protected]";
$subject = "Testing EMail";
$mailheaders ="From: test <[email protected]> \n";
$msg = "This is a test message from test.\n";
mail($to, $subject, $msg, $mailheaders);
echo "Done!";
?>
Please let me know if there is anything wrong.
<?php
$to = "[email protected]";
$fromname = "[email protected]";
$subject = "Testing EMail";
$mailheaders ="From: test <[email protected]> \n";
$msg = "This is a test message from test.\n";
mail($to, $subject, $msg, $mailheaders);
echo "Done!";
?>
Please let me know if there is anything wrong.