Search code examples
javaoutlookjakarta-mail

how to send email through outlook from java


I need to add e-mails (with attachments) in my MS Outlook 2000 outcoming msgs queue. In my company we use a software called "spool robot" (spool office suite) that does it retrieving data from an AS/400 server. I have to do the same but reading data from my MySql database in Java.

I found the JDIC api but it prepares the message window, but it doesn't send the email automatically. I can't use Java mail because I need to use the Outlook client (due to administrative constraints).

Any ideas?

Thanks.


Solution

  • I'm pretty sure there is a COM interface for Outlook. I looked around a bit and found sufficient evidence but no real documentation I could link to. The Outlook Developer Center seems to be a good starting point though.

    Using COM from Java is pretty straight forward using a Java COM Bridge like JACOB. I think there are commercial libraries available, but JACOB was pretty straight forward to use - at least 5 years ago when I last used it :)