Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to configure hmail Server and Microsoft Outlook for testing Java Mail applications

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm new to the java Mail ApI.For testing purposes I needed to install free mail server and outlook in my system.Today I figured out how to configure hmail Server and Microsoft Outlook for testing Java Mail applications and thought I will share with you all so that it can help those who are new to the Java Mail API like me.hMailServer is a free e-mail server for Microsoft Windows. It supports the common e-mail protocols (IMAP, SMTP and POP3) and can easily be integrated with many existing web mail systems.


1. Go to link and download hmail server. Here I’m using version hMailServer 5.3.3 - Build 1879
2. Install .exe file
3. After Installation, click on hmailServer administrator. It will ask for password. Supply the password you gave while installing .exe file
4. In hmailserver administrator console, click on Domains
4.1 Click on add
4.2 Enter the domain name of your choice eg: and after click on save
4.3 Under domain tab, click on Accounts
4.3.1 Click on add
4.3.2 Enter the address and password fields. Click on save. Here you can add any number of accounts as you like.(,,

Microsoft Oultook 2007
1.Install Microsoft office
2.Open Microsoft Outlook 2007
3.Click on Tools tab.Under Tools tab,Click on Account settings.
3.1Click on new
3.2 Click on Microsoft Exchange,POP3,IMAP or HTTP.Click next
3.3 Tick Manually configure server settings or additional server types
3.4 Click on Internet E-mail and click next
3.4.1 Under User Information,give your name and Email address you created in hmailsever
3.4.2 Server Information, Select Pop3 as server type and given your system’s IP address as both
Incoming mail server and Outgoing Mail server(SMTP)
3.4.3 Under Log on Information,give the Email address and password of the account you created in hmail server as Username and password
3.4.4 On the right side of the window,click on More Settings Click on Outgoing server tab and tick the box My outgoing server requires authentication and click on ok
3.4.5 Now click on Test account settings.If the information supplied is correct,then it will show completed
3.4.6 click next and finish

3.5 In the Outlook console, click on Send/Receive. If you have tested your account settings successfully, you will get an Email in your inbox

Now Both hmail server and Microsoft outlook is configured. Open hmailserver administrator and run your java mail application.I'm also giving below a sample of Java code -

You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic