|
Posted by toddrf on 11/29/05 18:50
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
Navigation:
[Reply to this message]
|