aspose file tools*
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
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java and microsoft exchange mailbox" Watch "java and microsoft exchange mailbox" New topic
Author

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.


Regards,
Gaurav
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18566
    
    8

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: 10355
    
    8

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
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java and microsoft exchange mailbox