• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java mail and Microsoft Exchange Server

 
King Chin
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
King Chin
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
King Chin
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yves Zoundi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you decide to go for Jakarta Slide, you should probably look at webdavclient4j, a project born after Jakarta Slide death.
 
Irena Witt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out JWebDAV for Exchange http://www.independentsoft.de/jwebdav

- Irena
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic