Geertjan's Blog

  • January 29, 2007

Simple JavaMail Client

Geertjan Wielenga
Product Manager
I spent some time trying to get the Simple JavaMail Client (which comes with the JavaMail API download) to work. I wanted to have a simple Swing application which would connect to my work e-mail account, which is found on an IMAP server. The problem is that it requires SSL authentication, which I discovered after a lot of google sleuthing, at the end of which I ended up here:

How do I connect to an IMAP server over an SSL connection?

That tip provides great information if you stumbled across the authentication issues that I had. Anyway, at the end of it all, I have almost exactly what I wanted (still a few bugs, but at least I can get onto the server now). Below, you see part of my list of folders in the left tree and the e-mails within the folder on the right, below all that you see the headers (which should also display the mail content ultimately).

"But why on earth would you want to create a new mail client?! Don't you already have one?! What a waste of time!" Well, thank you for asking. My ultimate aim, of course, is to port this JavaMail Swing client to the NetBeans Platform. I imagine it will end up being something like Josh's Postfachinspektor.

So, watch this space, because I will explain everything I did/will do and then you can follow along and create your own mail client in NetBeans IDE (or for your own NetBeans Platform application).

Join the discussion

Comments ( 3 )
  • guest Monday, January 29, 2007
  • Dominique De Vito Tuesday, January 30, 2007
    Are you going to release too your source code in open source ?
  • Geertjan Tuesday, January 30, 2007
    Sure, Dominique. But, as you'll see, it is mostly relatively simple.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.