• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java mail and Microsoft Exchange Server

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 349
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out JWebDAV for Exchange http://www.independentsoft.de/jwebdav

- Irena
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic