Hi All,
I have following PHP script and sending an email from my one yahoo id to my other yahoo id but recipient not getting the mail. I have checked spam folder of my other yahoo id and it looks ok. The php.ini also have proper configurations as given below:
smtp=localhost
sendmail_from=my_valid_email_id
sendmail_path=c/php/pear
my php script is:
<?php
$From = "from@myemaildomain.com";
$To = "to@reciepientmaildomain.com";
$Sub = "Test Drive";
$Msg = "Let's see how it works!!!!";
$Hdr = "From: $From";
$MsgSent = mail($To, $Sub, $Msg, $Hdr);
if ($MsgSent) {
echo "<p>The following message was sent successfully:</p><hr />";
echo "<p><strong>From</strong>: $From</p>";
echo "<p><strong>To</strong>: $To</p>";
echo "<p><strong>Sub</strong>: $Sub</p>";
echo "<p><strong>Msg</strong>: $Msg</p>";
echo "<p>$MsgSent</p>";
}
else
echo "<p>The message was not sent successfully!</p>";
?>
I do not know what I am missing. The value of $MsgSent variable is "1". Is there any one to help me?
Regards,