mail sent but not received?!
| From: | Bing Du | Date: | Fri, 25 Jun 2004 16:08:26 +0000 |
| Subject: | mail sent but not received?! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189062@lists.php.net to get a copy of this message | ||
Hi,
I've been pulling my hair out over this problem for a while...
----------------
<?php
$msg = "Hi, this is a test";
$to = "me@my.edu";
$sbj = "test message from my.edu";
$rev = mail($to,$sbj,$msg);
echo "mail from my.edu result is $rev";
?>
--------------
Since the result of the mail() returned is 1, the message should have been
delivered fine. but I did not get anything. Where can I look for more
clues of what the problem might be, like possible log, or turn on some
debug level in php? I've also tried mail($to,$sbj,$msg, "-f me@my.edu"),
no workie either.
Any help would be greatly appreciated!
Bing