Praneel PIDIKITI
Praneel PIDIKITI

Reputation: 19537

Connect to mail server using MAPI

I would like to connect to my enterprise mail server ..But i can only usi MAPI protocol it seems . how can i establish a connection to my Enterprise mail server using Java MAPI API

Upvotes: 2

Views: 1791

Answers (1)

Frank Schnabel
Frank Schnabel

Reputation: 1210

Unfortunately, the short answer is: you can't. MAPI is incompatible with managed languages (.Net, Java, etc.) because the garbage collection plays havoc with internal memory management. Your only option is to spawn an external process using an unmanaged language (e.g. C++, VB6) and using cross-process calls for any MAPI functions. You can do this using, for example, a COM EXE. This has the disadvantage that cross-process calls have a lot of overhead and, as a result, tend to be slow; but it may be your only option.

Upvotes: 1

Related Questions