tags:

views:

38

answers:

2
<?php 
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

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



$send = mail($to, $subject, $message, $headers );
if ($send)
$mailReturns = "Mail sent successfully.";
else
$mailReturns = "Mail sent failed.";

?>
<?php echo $mailReturns; ?>

after run it shows mail sent successfully but mail not showing up in any of the accounts. iv tried gmail, yahoo, rediff and ibibo why????

+1  A: 

Try to see in spam folder.

Alexander.Plutov
nop! not der also..
Tiya
+3  A: 

If you have qmail installed on your server, try using that. Alternatively, there is a nice PHP mailer class called swiftmail that is available here: http://swiftmailer.org/ you can try.

Your emails are probably being junked/marked as spam.

Evernoob
its not showing in junk or spam folder to.
Tiya