PHP Mail Localhost

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:

Agrosoft 1

Agrosoft 1

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

Agrosoft 2

Agrosoft 2

5. Try point browser to the url below:
http://localhost:8087

You shall see something like the one below:

ArGoSoft Mailer

ArGoSoft Mailer

6. Now go back to the ArGoSoft window, and press CTRL+U, this will bring up something like the one below:

ArGoSoft Users

ArGoSoft Users

7. Click on Add user, and there should be a pop up window like the one below:

ArGoSoft Add User

ArGoSoft Add User

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:

ArGoSoft Domain

ArGoSoft Domain


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:

ArGoSoft Mail

ArGoSoft Mail

Now it’s done! Hope this helps!

  1. 2 Responses to “PHP Mail Localhost”

  2. Lp!

    Tole je še stara različica freewara in ne prime v njem ctrl+o da bi nastavil web interface … pomoč prosim?

    By Matys on Feb 21, 2009

  1. 1 Trackback(s)

  2. Dec 10, 2008: Wordpress Mail Localhost | Highub - Web Development Blog

Post a Comment