Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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()

share|improve this question
    
Possible duplicate of stackoverflow.com/questions/30076/… –  RedGrittyBrick Jan 24 '11 at 12:01
    
Shouldn't this be on Server Fault? –  CarlF Jan 26 '11 at 21:56

1 Answer 1

up vote 1 down vote accepted

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).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.