Are you a PHP developer? Do you develop your solutions on Windows? Have you always looked for a solution to get mail() function working on Windows? Today while browsing the internet, I noticed a cool tool that listens to the standard SMTP port (25) and stores the email messages instead of sending them online. Isn’t it cool?
Just grab the MSI package from it’s CodePlex repo: http://smtp4dev.codeplex.com/. Install it. They provide a nifty UI for configuration option. Play with it.
When “smtp4dev” is up and running, check your PHP settings. If you’re using WAMP Server or any other pre-configured packages, it’s most likely that you already have port 25 configured for outbound emails (and for the mail function of course).
If everything is okay, go ahead and execute the mail() function in PHP. smtp4dev should popup a notification on email acceptance.
The tool is small in size, lightweight and actually it’s loads better than filling up my gmail inbox đ
3 replies on “Using mail() in PHP on Windows”
great ! thanks masnun bhai
Earlier I used mail () function. This is very useful.
Also may be using FakeSMTP for email testing
Good alternative