Xampp already provide email server inside of their package but to get the email server to work you need to do a few click to make sure it run well.
I use zip version of Xampp on this post and lets get start!
Click XAMPP Start .exe and wait for while
You should be able to see localhost page properly.
Run Mercurry Email Server
Email server run on port 25, you can check if this port work with netstat -an command.
As you see from the picture, no :25 listed.
21 for ftp port
Check current service status of XAMPP
Click Status link under Welcome
SMTP Service is deactivated
To get it start just click mercury_start.bat (you won’t see the extension)
A few pop up windows will loaded, let it as is and don’t close anything.
Refresh status page and you’ll see status of SMTP Service in ‘Activated’ and green color.
You also able to check again via netstat -an command and you must see the same as this picture.
That’s it. You have working email server for testing mail() function on localhost environment.
P.S : You just need one email server only on your windows machine. If you have agrosoft email server or axigen you must on your machine you must choose only one as active email server.