wood burning stoves*
The moose likes Java in General and the fly likes How to configure hmail Server and Microsoft Outlook for testing Java Mail applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to configure hmail Server and Microsoft Outlook for testing Java Mail applications" Watch "How to configure hmail Server and Microsoft Outlook for testing Java Mail applications" New topic
Author

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

kate james
Greenhorn

Joined: Jan 09, 2012
Posts: 1
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 -

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to configure hmail Server and Microsoft Outlook for testing Java Mail applications
 
Similar Threads
get my email from an E-mail client
Sending Email using Java mail API in J2EE
Java Mail Authentication
Java Mail send message to Yahoo account
Mail sending program