Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending a MAPI email via Java ( or C# )

Tags:

java

c#

email

mapi

I have a java program that sends some emails currently using SMTP. I have a customer whose corporate network is locked down and only allows sending of emails via the MAPI1 and MAPI4 protocols.

After looking around on the internet I have been unable to find any examples of sending an MAPI email from a Java program. If we have to pay for some 3rd party component its not the end of the world, but free is obviously better :)

Another point to add is that if the task is much easier in C# then there is the possibility of creating the send email functionality in C# and calling the C# program from the Java main application.

Please let me know if you require anymore information.

like image 458
user589195 Avatar asked May 23 '26 09:05

user589195


1 Answers

All of the following can send mails via MAPI from Java:

  • http://www.codeproject.com/KB/IP/CMapiEx.aspx
  • https://github.com/briandealwis/jmapi
  • http://www.moyosoft.com/joc/ (commercial)
  • http://www.dimastr.com/redemption/ (commercial) together with http://sourceforge.net/projects/jacob-project/ (COM bridge for Java)
  • http://www.moonrug.com/features.html (commercial) (no longer appears to exist)

You will usually need the MAPI COM components on the local machine and always the credentials for the MAPI connection/Exchange account!

Since I am not sure what you mean by MAPI4 versus MAPI1 I suspect that you might mean IMAP (there is a V 4 of the protocol) which is quite different from MAPI - just in case the following are Java options for IMAP:

  • http://www.oracle.com/technetwork/java/javamail/javamail143-243221.html
  • http://www.chilkatsoft.com/java-imap.asp (commercial)
like image 70
Yahia Avatar answered May 25 '26 22:05

Yahia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!