You are here: IIS configuration « PHP Programming Language « IT news, forums, messages
IIS configuration

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация