IIS configuration



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

.



Relevant Pages

  • RE: Question about IIS v5 SMTP Virtual Server
    ... If you chosed to run IIS SMTP on your computer, then you could use your computer to send out the email ... Internet Information Server ... | I was going to try and set this ISP SMTP server up in my PHP script when I ...
    (microsoft.public.inetserver.iis)
  • Re: SMTP over SSH via PHP
    ... >> I can use SSH to talk to the SMTP server on the Linux staging box? ... > to SSL-encrypt other data streams like SMTP, and I'm sure it could be ... I need my php script to possibly call a simple SSH tunnelling script. ...
    (RedHat)
  • Re: Free SMTP with no authentication
    ... I'm writting a PHP script to send mail using a remote SMTP server. ...
    (comp.lang.php)
  • Re: write with cURL
    ... potential security risks from other users on the same server. ... as the global web server user and thus needs world write permissions ... Hence, any PHP script ran on another account, has the ... Correct, not the same as global write, just the same Apache group write. ...
    (alt.php)
  • what permissions are needed to let a php script call the "svn update" subversion command?
    ... If I log into my server as root, I can easily run this line: ... Just to be very, very clear, I mean the PHP script runs but shell_exec ... to commit their work to Subversion. ... Unfuddle instead of Springloops, ...
    (comp.unix.programmer)