Re: PHP 4.0.6, Apache 1.3x and SL Mail
| From: | DL Neil | Date: | Wed, 31 Oct 2001 10:36:07 +0000 |
| Subject: | Re: PHP 4.0.6, Apache 1.3x and SL Mail | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10133@lists.php.net to get a copy of this message | ||
> I'm running apache w/ php 4.0.6 on our win nt 4 server. I can't seem to get
> the mail function to work. It doesn't complain -- nothing complains. The
> email are not going through....
> ...
> I've checked my php.ini file and have tried localhost and the direct IP of
> the server in the SMTP setting, and it still doesn't work.
>
> We're running SL Mail, and I created an account for PHP. Does PHP use the
> mail server (SL Mail in this case), or does it send it via SMTP on its own?
> ...
> I'm not sure where the problem is, and I'm not highly experienced with php,
> apache, or windows nt.
Jason,
It sure is a pain when there is absolutely no information to work from, isn't it! I have
managed to get PHP to
email out from under Apache/NT, but note that others find it a trying/testing process. There are a
number of
players in this scenario, so let's try to find out what information you do have, and hit the
'most-wanted' list
first:
1 please cut and paste the [mail function] section of php.ini, so we can discuss those entries
2 have you managed to get email out of the PHP, Apache, WinNT, SL Mail combination at all?
3 are we talking NT4.0? at what SP level? does it also run IIS or PWS? is the mail server on the
same box as
Apache?
4 in php.ini try replacing the IPaddr with the SMTP server's DNS name
5 do you have any other application-application connection into SL Mail (that is working), or are
you able to
drop an appropriately formatted (email msg) file into its set directory and watch it being whisked
away across
the Internet email system?
I'm not sure how to answer your question about PHP, SMTP, and SL Mail. All SMTP servers
'talk' to each other -
that's how mail is passed from computer to computer across the Internet. So in that respect PHP
needs to talk to
an SMTP server. However it does not need to have an SMTP server of its own/on the same box as
it/Apache resides.
Please advise,
=dn