• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
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.

hmailserver

1. Go to link http://www.hmailserver.com/ 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: example.com 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.(Example:test1@example.com,,test2@example.com)

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
3.4.4.1 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 -

 
reply
    Bookmark Topic Watch Topic
  • New Topic