File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Read emails from Microsoft Outlook Using Java Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Read emails from Microsoft Outlook Using Java Mail" Watch "Read emails from Microsoft Outlook Using Java Mail" New topic
Author

Read emails from Microsoft Outlook Using Java Mail

Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
Hi everyone,

I wish to read emails and its attachment recieved on Microsoft oulook using Java Mail. Is there any way to do this?

Thanks in advance.
[ December 24, 2008: Message edited by: Nila dhan ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41581
    
  54
This sounds like a familiar question; you can use the "Search" at the top of the page to find the previous discussions.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

First thing you need to find out is where your Outlook gets your emails from. Is it an Exchange server? Does it uses IMAP, or POP3?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
It is an exchange server. I am not sure of the protocol that the server is using, but in code, I am using IMAP. is there any way to find out what protocol the server is using?

When I try to connect to it, I get the exception ,

[ December 24, 2008: Message edited by: Nila dhan ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Read emails from Microsoft Outlook Using Java Mail