RE: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Vail, Warren

Outgoing email requires access to a SMTP client or relay.  To prevent these
relays from being used for SPAM, most shops will restrict which IP's can use
the relay.  Suggest you contact the administrators of your exchange server,
and make sure the IP is on the list of eligible IP's for using the relay, or
install the smtp client software on your RedHat machine.  Another concern
would be access to DNS serving the domains you intend to send mail to.  Your
SMTP client will need have access a good dns.  Key question, are you
attempting to send email thru a firewall?  Unless you get the an ok for
that, you may find your ability to send email limited to within the domain.

just a few ideas,

Warren Vail
Tools, Metrics  Quality Processes


-Original Message-
From: Aaron Paxson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 12:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] I cannot use mail() ?!?


I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2.  My email
server is Exchange 5.5sp3

SMTP is set correctly in my php.ini file, and have restarted Apache.
However, I still cannot send out a simple text email:

?php mail([EMAIL PROTECTED],Test,This is a test message); ?

The function returns true, but no delivery is made.  In looking in my
Exchange Queues, I do not see any sign of an email going through.  However,
using an email client in KDE, email is sent just fine through SMTP.  Did I
miss something?

Aaron




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

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




Re: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Aaron Paxson

Excellent ideas Warren!!

Being the IT Systems Administrator, I administrate everything from the
firewalls to the exchange/DNS servers.  Everything seems to be okay there.

In doing another test, I was able to send out an email via my SMTP server to
other domains, just not to me.  It apparently did not use the
sendmail_from setting since the email says root.  I'll look at that issue
later grin

You are correct, that I am set to not be a relay.  However, there is no
relaying involved, since it is coming from within my own domain.  Also,
the KDE environment works just fine with SMTP messaging, just not PHP.  I'm
wondering if I'm missing something.  I'm fairly new to PHP.  Maybe my
settings?  I just compiled PHP, Apache, and MySql just last week.

Thanks for the response!!!
Aaron
Warren Vail [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Outgoing email requires access to a SMTP client or relay.  To prevent
these
 relays from being used for SPAM, most shops will restrict which IP's can
use
 the relay.  Suggest you contact the administrators of your exchange
server,
 and make sure the IP is on the list of eligible IP's for using the relay,
or
 install the smtp client software on your RedHat machine.  Another concern
 would be access to DNS serving the domains you intend to send mail to.
Your
 SMTP client will need have access a good dns.  Key question, are you
 attempting to send email thru a firewall?  Unless you get the an ok for
 that, you may find your ability to send email limited to within the
domain.

 just a few ideas,

 Warren Vail
 Tools, Metrics  Quality Processes


 -Original Message-
 From: Aaron Paxson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 12:18 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] I cannot use mail() ?!?


 I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2.  My email
 server is Exchange 5.5sp3

 SMTP is set correctly in my php.ini file, and have restarted Apache.
 However, I still cannot send out a simple text email:

 ?php mail([EMAIL PROTECTED],Test,This is a test message); ?

 The function returns true, but no delivery is made.  In looking in my
 Exchange Queues, I do not see any sign of an email going through.
However,
 using an email client in KDE, email is sent just fine through SMTP.  Did I
 miss something?

 Aaron




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



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




Re: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Jason Wong

On Thursday 01 August 2002 03:17, Aaron Paxson wrote:
 I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2.  My email
 server is Exchange 5.5sp3

 SMTP is set correctly in my php.ini file, and have restarted Apache.
 However, I still cannot send out a simple text email:

I believe the SMTP setting in php.ini is only used if the server is running 
Windows. Under Linux, the sendmail setting is used. Read the comments in 
php.ini.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
panic: kernel segmentation violation. core dumped   (only kidding)
*/


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




Re: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Aaron Paxson

That is what I had orginally thought.  However, in an article I found about
mail(), he said it will also work on a linux box that does not have sendmail
configured.

If that's the case, how do I get sendmail to work with Exchange??  sendmail
newbie

Aaron


Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Thursday 01 August 2002 03:17, Aaron Paxson wrote:
  I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2.  My email
  server is Exchange 5.5sp3
 
  SMTP is set correctly in my php.ini file, and have restarted Apache.
  However, I still cannot send out a simple text email:

 I believe the SMTP setting in php.ini is only used if the server is
running
 Windows. Under Linux, the sendmail setting is used. Read the comments in
 php.ini.

 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 panic: kernel segmentation violation. core dumped (only kidding)
 */




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




Re: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Jason Wong

On Thursday 01 August 2002 05:50, Aaron Paxson wrote:
 That is what I had orginally thought.  However, in an article I found about
 mail(), he said it will also work on a linux box that does not have
 sendmail configured.

In my experience, if php does not find sendmail when it is configured and 
compiled, mail() would not work. You would get an error message like:

   PHP Warning:  mail() is  not supported in this PHP build ...

To see whether this is the case in your situation check your php log file 
(make sure you've set php to report ALL errors).

 If that's the case, how do I get sendmail to work with Exchange?? 
 sendmail newbie

How do you mean by 'work with Exchange' ? If sendmail was configured properly, 
it would send mail to anywhere you tell it to.

Does your sendmail installation work at all? That is have you tested it 
outside of PHP?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Graduate life: It's not just a job.  It's an indenture.
*/


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