[NB] Mail() question
| From: | Tony S . Wu | Date: | Sat, 18 Jan 2003 20:48:44 +0000 |
| Subject: | [NB] Mail() question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24934@lists.php.net to get a copy of this message | ||
I need to send myself an email in one of my PHP page.
So i wrote the following code:
$result = ini_set(SMTP, "smtp.earthlink.net");
if ($result)
{
echo ini_get(SMTP);
$result = mail("tonyswu@earthlink.net", "test", "test123");
if ($result)
echo "mail sent";
}
It always print "mail sent", but I never got the email.
So I was wondering if Mail() request any send mail program to work.
Can anyone tell me?
Thanks.
Tony S. Wu
tonyswu@mac.com