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
posted
0
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..
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.
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 ]
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.
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.