File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes java and microsoft exchange mailbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java and microsoft exchange mailbox" Watch "java and microsoft exchange mailbox" New topic

java and microsoft exchange mailbox

Kumar Gaurav
Ranch Hand

Joined: Apr 08, 2008
Posts: 108
Howdy Ranchers,

I have a requirement which involves reading a mailbox on microsoft exchange server. I know micrsoft exchange server supports POP3 protocol.
But i am not able to figure it out how to read message in inbox folder of the mailbox.

what all information i know is :

servername: http://<server>/exchange
username: <username>
password: <pwd>

I even checked webDav implementation but did not find anything about reading mail from mailbox.

Any pointer or sample code to achieve this would be helpful.

Paul Clapham

Joined: Oct 14, 2005
Posts: 18120

The easiest way to do that is to use JavaMail.
Kumar Gaurav
Ranch Hand

Joined: Apr 08, 2008
Posts: 108
thanks paul.

can you provide pointer to sample code.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990

Kumar Gaurav wrote:thanks paul.

can you provide pointer to sample code.

Just like any other API under the "Java" umbrella, the JavaMail site provides documentation as well as code examples and FAQ

Moving to a more appropriate forum, where JavaMail questions are usually discussed

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor

Joined: Oct 27, 2005
Posts: 19541

As you said, Exchange supports POP3, so you can just use any POP3 example. Forget about WebDAV.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: java and microsoft exchange mailbox
Similar Threads
JAVA Mail API (Expert opinion needed)
LDAP error at MS_Exchange Server
Config data storage - best practices?
Microsoft Exchange alternative needed
Java mail and Microsoft Exchange Server