Re: [NB] Mail() question

From: Date: Sat, 18 Jan 2003 22:27:04 +0000
Subject: Re: [NB] Mail() question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24938@lists.php.net to get a copy of this message
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("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. 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 */

« previous php.db (#24938) next »