Re: [NB] Mail() question

From: Date: Sat, 18 Jan 2003 23:03:18 +0000
Subject: Re: [NB] Mail() question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24943@lists.php.net to get a copy of this message
Ah, that must be it. I am running a Mac OS X server, which is Darwin based. Guess I should go with sendmail. Thanks a lot. Tony S. Wu tonyswu@mac.com On Saturday, January 18, 2003, at 02:27 PM, Jason Wong wrote:
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 */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#24943) next »