I use the free and awesome hMailServer on my dev box so that I can test my e-mail functions and not just get mail()
errors! hMailServer is a free, open-source, e-mail server for Microsoft Windows.
It is quick and painless to set up…
- Download hMailServer
- Run the setup exe
- Supply and confirm password
- Accept default locations
- You will be given the opportunity to run hMailServer at start
- hMailServer opens with a password prompt
- the Welcome screen is displayed
- click the Add domain button
- Domain: yourdomain.com (or normally 127.0.0.1), ensure the Enabled checkbox is selected, click Save
- Your new Domain now appears in the Domains list on the left
- Under Domains, expand your new Domain and select Accounts, and click the Add button on the right
- On the General tab, enter details, eg: Address – admin (the @yourdomain.com is already available), Password
- You will receive a warning if your password is too weak
- Your account now appears in the tree on the right
- You might want to set up PHPWebAdmin…
- I set up a virtualhost in Apache (don’t forget your Windows hosts file – C:\Windows\System32\drivers\etc\hosts)
- You will most likely receive the following message in browser your “Please rename config-dist.php to config.php. The file is found in the PHPWebAdmin root folder.”
- Make the following changes in the config file:
$hmail_config['rooturl'] = "http://phpwebadmin.localhost/";