>> I need to connect to MS Exchange Server and get any email with
>> attechments. Use of IMAP and POP3 are not allowed on this Exchange
>> Server.
> You could test via sockets to see if it least follows the RFC's.
Your example only tests whether the server supports SMTP, which is a
protocol for sending mail, not retrieving it.
Retrieving mail is generally done with POP or IMAP or, in the case of
MS Exchange, MAPI.
The OP should be looking for a library or tool that supports MAPI, or
a (probably reverse engineered) description of the protocol so he can
implement it himself.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
iksrazal@gmail.com - 19 Dec 2005 17:01 GMT
> >> I need to connect to MS Exchange Server and get any email with
> >> attechments. Use of IMAP and POP3 are not allowed on this Exchange
[quoted text clipped - 13 lines]
>
> /gordon
Yeah, I meant to clarify that but lost power on my followup ;-).
Nevertheless, I meant to say that if you can send mail over vanilla
sockets you also can retrieve them via vanilla sockets, right? And if
you're going to reverse engineer MAPI, sockets are a great way because
of ethereal and the like as well as the flexibility.
Still of course Gordon is right. Unfortunately, according to Roedy
javamail doesn't support MAPI.
http://mindprod.com/jgloss/javamail.html
"JavaMail does not support the Windows proprietary MAPI protocol."
Good luck to the OP, might be a big challenge.
iksrazal
Gerbrand van Dieijen - 19 Dec 2005 19:36 GMT
iksrazal@gmail.com schreef:
> Still of course Gordon is right. Unfortunately, according to Roedy
> javamail doesn't support MAPI.
[quoted text clipped - 5 lines]
> Good luck to the OP, might be a big challenge.
> iksrazal
Best way seems to may to convince the adminstrator of the exchange
server to enable (secure) imap or pop3. Exchange does support that after
all (I could access exchange using netscape/thunderbird). Secure imap is
quite save too, especially when compared to MAPI.