Re: [PHP-DB] [NB] Mail() question

2003-01-18 Thread Micah Stevens
The mail() function returns true if it functions, i.e. if you have all
the parameters correct, and that sort of thing. If the SMTP server
rejects the email, you'll still get true returned. I ran into this a
while back. Try and do a manual connection to the SMTP server from your
PHP machine and see if it works that way. It may be failing and you
don't know. If you have access to the mail logs, check those out too. 

-Micah


On Sat, 2003-01-18 at 12: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.
 Can anyone tell me?
 Thanks.
 
 Tony S. Wu

[EMAIL PROTECTED]

-- 
Raincross Technologies
Development and Consulting Services
http://www.raincross-tech.com




Re: [PHP-DB] [NB] Mail() question

2003-01-18 Thread Tony S . Wu
EarthLink is my DSL ISP, so its smtp server is not likely to block my 
mail.
Besides, I can send email with my mail program just fine.
I tried the similar thing on a friend's smtp server where I have access 
to the log, weird thing is I didn't even see PHP trying to access the 
smtp server.
I need to figure out why it's not working fast...
Thanks to your help.

Tony S. Wu
[EMAIL PROTECTED]

It takes a smart man to be stupid. ~Tony


On Saturday, January 18, 2003, at 01:47 PM, Micah Stevens wrote:

The mail() function returns true if it functions, i.e. if you have all
the parameters correct, and that sort of thing. If the SMTP server
rejects the email, you'll still get true returned. I ran into this a
while back. Try and do a manual connection to the SMTP server from your
PHP machine and see if it works that way. It may be failing and you
don't know. If you have access to the mail logs, check those out too.

-Micah


On Sat, 2003-01-18 at 12: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.
Can anyone tell me?
Thanks.

Tony S. Wu


[EMAIL PROTECTED]

--
Raincross Technologies
Development and Consulting Services
http://www.raincross-tech.com





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] [NB] Mail() question

2003-01-18 Thread Tony S . Wu
EarthLink is my DSL ISP, so its smtp server is not likely to block my 
mail.
Besides, I can send email with my mail program just fine.
I tried the similar thing on a friend's smtp server where I have access 
to the log, weird thing is I didn't even see PHP trying to access the 
smtp server.
I need to figure out why it's not working fast...
Thanks to your help.

Tony S. Wu
[EMAIL PROTECTED]


On Saturday, January 18, 2003, at 01:47 PM, Micah Stevens wrote:

The mail() function returns true if it functions, i.e. if you have all
the parameters correct, and that sort of thing. If the SMTP server
rejects the email, you'll still get true returned. I ran into this a
while back. Try and do a manual connection to the SMTP server from your
PHP machine and see if it works that way. It may be failing and you
don't know. If you have access to the mail logs, check those out too.

-Micah


On Sat, 2003-01-18 at 12: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.
Can anyone tell me?
Thanks.

Tony S. Wu


[EMAIL PROTECTED]

--
Raincross Technologies
Development and Consulting Services
http://www.raincross-tech.com





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] [NB] Mail() question

2003-01-18 Thread Jason Wong
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




Re: [PHP-DB] [NB] Mail() question

2003-01-18 Thread Micah Stevens
Change the ini_set line to this:

$result = ini_set(SMTP, smtp.earthlink.net);


-Micah

On Sat, 2003-01-18 at 14:18, Tony S.Wu wrote:

 EarthLink is my DSL ISP, so its smtp server is not likely to block my 
 mail.
 Besides, I can send email with my mail program just fine.
 I tried the similar thing on a friend's smtp server where I have access 
 to the log, weird thing is I didn't even see PHP trying to access the 
 smtp server.
 I need to figure out why it's not working fast...
 Thanks to your help.
 
 Tony S. Wu
 [EMAIL PROTECTED]
 
 It takes a smart man to be stupid. ~Tony
 
 
 On Saturday, January 18, 2003, at 01:47 PM, Micah Stevens wrote:
 
  The mail() function returns true if it functions, i.e. if you have all
  the parameters correct, and that sort of thing. If the SMTP server
  rejects the email, you'll still get true returned. I ran into this a
  while back. Try and do a manual connection to the SMTP server from your
  PHP machine and see if it works that way. It may be failing and you
  don't know. If you have access to the mail logs, check those out too.
 
  -Micah
 
 
  On Sat, 2003-01-18 at 12: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.
  Can anyone tell me?
  Thanks.
 
  Tony S. Wu
 
  [EMAIL PROTECTED]
 
  -- 
  Raincross Technologies
  Development and Consulting Services
  http://www.raincross-tech.com
 
 

-- 
Raincross Technologies
Development and Consulting Services
http://www.raincross-tech.com




RE: [PHP-DB] [NB] Mail() question

2003-01-18 Thread John W. Holmes
Here is a quick article that discusses how to connect manually to an
SMTP server:

HOW TO: Test Windows 2000 IIS SMTP Services Manually
http://support.microsoft.com/default.aspx?scid=kb;EN-US;286421

Just substitute machine_name for your ISPs SMTP server. Run through
the tests and you'll be able to see what errors you're getting. You're
going to be doing the same thing that PHP is doing with the mail()
command, so you'll be able to see what errors PHP is getting, but not
returning.

Hope that helps.

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/

 -Original Message-
 From: Tony S. Wu [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 18, 2003 5:18 PM
 To: Micah Stevens
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP-DB] [NB] Mail() question
 
 EarthLink is my DSL ISP, so its smtp server is not likely to block my
 mail.
 Besides, I can send email with my mail program just fine.
 I tried the similar thing on a friend's smtp server where I have
access
 to the log, weird thing is I didn't even see PHP trying to access the
 smtp server.
 I need to figure out why it's not working fast...
 Thanks to your help.
 
 Tony S. Wu
 [EMAIL PROTECTED]
 
 It takes a smart man to be stupid. ~Tony
 
 
 On Saturday, January 18, 2003, at 01:47 PM, Micah Stevens wrote:
 
  The mail() function returns true if it functions, i.e. if you have
all
  the parameters correct, and that sort of thing. If the SMTP server
  rejects the email, you'll still get true returned. I ran into this a
  while back. Try and do a manual connection to the SMTP server from
your
  PHP machine and see if it works that way. It may be failing and you
  don't know. If you have access to the mail logs, check those out
too.
 
  -Micah
 
 
  On Sat, 2003-01-18 at 12: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.
  Can anyone tell me?
  Thanks.
 
  Tony S. Wu
 
  [EMAIL PROTECTED]
 
  --
  Raincross Technologies
  Development and Consulting Services
  http://www.raincross-tech.com
 
 
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] [NB] Mail() question

2003-01-18 Thread Tony S . Wu
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
[EMAIL PROTECTED]


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([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





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php