aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Java mail and Microsoft Exchange Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java mail and Microsoft Exchange Server" Watch "Java mail and Microsoft Exchange Server" New topic
Author

Java mail and Microsoft Exchange Server

King Chin
Greenhorn

Joined: Aug 13, 2008
Posts: 11
Hi,

Anybody know the properties of Microsoft Exchange Server- Protocol it uses and the Port number it listens to..

I have problem connecting to Exchange. If anybody can post a sample program to read mails from Exchange, it will be greatly helpful to me.

Advance Thanks.
Uli Hofstoetter
Ranch Hand

Joined: Nov 24, 2006
Posts: 57
Some years ago i had to send email via an exchange server and it behaved like any other SMTP server, accepting smtp connections on port 25.

But maybe this depends on the servers configuration.

Regards,
Uli


SCEA5, Certified ScrumMaster
King Chin
Greenhorn

Joined: Aug 13, 2008
Posts: 11
Yes, I can send mails using SMTP, but my problem is to read mails from Exchange, where IMAP or POP3 protocols when used throws exception, Port numbers of Exchange is not known..

Do you have any idea about reading mails...
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Hi Chin,

You can not use Java mail to read mails from Exchange server. Exchange server listens to a port and depends on how the server is configured.
You can use webdav protocol to read contents of emails and its attachments.

I know jakarta-slide api which supports all your requirements and I have used this for one of my assignments, however this project is no more active so you can find some equivalent API's.

Hope this helps.

Ananth Chellathurai


Ananth Chellathurai [Walk on software]
King Chin
Greenhorn

Joined: Aug 13, 2008
Posts: 11
Originally posted by Ananth Chellathurai:

You can use webdav protocol to read contents of emails and its attachments.

Thank you Ananth, Can you please throw some light on this. If I can know the port number can I use Java mail to read the contents of mail. If so could you please post a sample code to use the protocol.

Originally posted by Ananth Chellathurai:
I know jakarta-slide api which supports all your requirements and I have used this for one of my assignments, however this project is no more active so you can find some equivalent API's.


Could you please direct me to an appropriate source. I want to run my program in Unix environment. I googled for it but not able to find anything useful..

Advance Thanks
[ September 12, 2008: Message edited by: King Chin ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42274
    
  64
Jakarta Slide is a WebDAV client; it is only useful if you want to use WebDAV, and I don't think any email client can handle that. You can it find it easily through Google, though.


Ping & DNS - my free Android networking tools app
Yves Zoundi
Ranch Hand

Joined: Aug 31, 2008
Posts: 47
If you decide to go for Jakarta Slide, you should probably look at webdavclient4j, a project born after Jakarta Slide death.


Author of VFSJFileChooser and XPontus XML Editor
Irena Witt
Greenhorn

Joined: Dec 18, 2010
Posts: 2
Check out JWebDAV for Exchange http://www.independentsoft.de/jwebdav

- Irena
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

Ananth Chellathurai wrote:You can not use Java mail to read mails from Exchange server.


And since we're bringing this two-year-old thread back to life, let me point out that this statement is false. Microsoft Exchange supports both POP and IMAP to allow applications (including JavaMail) to read e-mail from it.
 
 
subject: Java mail and Microsoft Exchange Server