IIS configuration
- From: toddrf@xxxxxxxxx
- Date: 29 Nov 2005 08:50:45 -0800
I'm trying to get a PHP script that sends an email working. I have
modified the php.ini file to include the proper values for SMTP =,
smtp_port=, and sendmail_from=. However, when I try to send mail using
the script, I get 'Failed to connect to mailserver at "localhost" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use
ini_set() in....". I have an actual server name specified for SMTP=,
but it seems almost as if the server isn't reading the php.ini file.
As a test, I included the ini_set(SMTP, xxxx) and
ini_set(sendmail_from, xxxx) in the php script itself, and the mail
worked. Unfortunately, we have hundredes of scripts, and I don't fancy
the idea of changing them all. Why isn't the setting in php.ini
working?
Thanks,
Todd
.
- Follow-Ups:
- Re: IIS configuration
- From: toddrf
- Re: IIS configuration
- Prev by Date: Reading from txt file
- Next by Date: Learning PHP and MySql
- Previous by thread: Reading from txt file
- Next by thread: Re: IIS configuration
- Index(es):
Relevant Pages
|