MailCatcher with PHP on windows
mail testing on development server is always big problem for developers, if you have windows/ WAMP development server then its really hard to test email message with #PHP. You have to dump and die your message to check proper message is going in mail or not. sometime developer do mistake forget to remove debug code put on production later they find out the messages on production which is embarrassment for them.
To solve this problem MailCatcher is really handy and simple SMTP mail server which send and display mails in web interface.
Install MailCatcher and run
Follow the instruction here http://mailcatcher.me/ to install MailCatcher once install done open command prompt type mailcatcher and enter it will show you two ip address setting to access mailcatcher
==> smtp://127.0.0.1:1025 ==> http://127.0.0.1:1080
use http://127.0.0.1:1080 in browser to access mailcatcher web interface
PHP ini settings
Open php.ini file search SMTP once you found replace SMTP address and port with mailcatcher address and port
SMTP = 127.0.0.1
smtp_port = 1025
try php mail script you will find all sent emails in Mailcatcher web interface.
Important
you need to run mailcatcher before sending or testing any email on development server.



















