I hope someone can help me with this...

I have a Windows 2003 server with IIS6 and PHP 4.x on it and it used to send out emails just fine to the smtp server listed in the php.ini file. Then I had to wipe Windows and reinstall everything, but now I can't get it to send the emails!

I've tried sending emails with my workstation using IIS5 and PHP 4.x and it works perfectly fine.

So I guess my question is: Is there some setting or permission that has to be set in 2003? I just can't believe this won't work anymore (and on one machine but not the other...) :queasy:

Anyway, any help that can be offered would be very appreciated.

    Just for giggles, try using the PHPMailer class. Google search it. I use it for my PHP on Windows Server setups and never have a problem.

      I think I might have figured it out. Does port 25 (smtp) need to be open for both in and out?

        Have you checked your Event Logs?

        On the note of what rsmith had said, phpMailer class works extremely well under windows and unix envronments, as it formats the email to each mailer daemon.

        If there is an issue like that - it should reflect in the event log, or exchange / IIS log (dependant on setup).

          Are you using the MS IIS SMTP server to relay mail from PHP? If so, if you are connecting via "localhost", you still need to set its configuration to allow this.

          Try it on your dev box - "localhost" should be in a list of hosts which are allowed to relay.

          Using MS IIS as an SMTP relay should be a last resort- it has NO USEFUL LOGGING of any kind. It logs almost nothing.

          Mark

            Write a Reply...