How to setup mail server for using in Windows/Apache/PHP?

1

I am trying to setup a web server with mailing capabilities (for development/testing) on localhost or Windows/Apache/PHP. How can I do that? So I can using PHP mail()

Jiew Meng

Posted 2011-01-24T10:35:59.123

Reputation: 1 263

Possible duplicate of http://stackoverflow.com/questions/30076/need-a-lightweight-free-windows-smtp-server

– RedGrittyBrick – 2011-01-24T12:01:34.370

Shouldn't this be on Server Fault? – CarlF – 2011-01-26T21:56:28.953

Answers

1

Cygwin is a port of UNIX stuff on Windows. It has a POSIX emulation DLL, and then most Linux tools just run normally. It includes apache, and PHP. You can download the installer from Cygwin.com. You'd need to know some UNIXish stuff to get it working though.

You can also just download apache itself and PHP and install for yourself.

Not sure what you want to do though, what do you mean by mail()? You'd need to configure PHP to go to an outside mail server, so I'm not sure what you'd gain over going to the external SMTP server directly. Cygwin has a mail server (exim) and there are others available (see the comment on your question).

Rich Homolka

Posted 2011-01-24T10:35:59.123

Reputation: 27 121