On Sunday 19 January 2003 04:48, Tony S. Wu wrote: > 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("[EMAIL PROTECTED]", "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.
Is it a windows server that you're using? SMTP only works for windows. Anything else uses sendmail or equivalent. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* transient bus protocol violation */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php