This article teaches you how to test PHP sent mail function on localhost.
1. On Windows, you can first download the free software Argosoft at (choose Mail Server Freeware):
http://www.argosoft.com/RootPages/Download.aspx
2. After downloading the software, double click to install it.
3. When launch the application, you should see something like the one below:
4. The port 80 might already be in use, because you may have Apache running on that port , click CTRL + O to configure new port for AMS web server. choose Ports tab. Change Web Interface port from 80 to anything you want, in this case, let’s try: 8087
5. Try point browser to the url below:
http://localhost:8087
You shall see something like the one below:
6. Now go back to the ArGoSoft window, and press CTRL+U, this will bring up something like the one below:
7. Click on Add user, and there should be a pop up window like the one below:
8. Set name and password, in this case, let’s set the username as sc.
9. Now close the user window, and press Ctrl+O, click on the local domains tab:
10. Add example.com
11. Now create a PHP file named send.php with script below:
mail('sc@example.com', 'My Subject', 'hullo world');
12. Run the send.php in your browser.
13. Now at http://localhost:8083, press Login, and enter username sc and the password you set.
14. You shall see your mail like something below:
Now it’s done! Hope this helps!




























































#1 by Matys on February 21, 2009 - 1:06 am
Lp!
Tole je še stara različica freewara in ne prime v njem ctrl+o da bi nastavil web interface … pomoč prosim?