GeeCON Prague 2014*
The moose likes Other JSE/JEE APIs and the fly likes Need to monitor MSNOutlook for incoming mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Need to monitor MSNOutlook for incoming mail" Watch "Need to monitor MSNOutlook for incoming mail" New topic
Author

Need to monitor MSNOutlook for incoming mail

bob connolly
Ranch Hand

Joined: Mar 10, 2004
Posts: 204
Hello!

We will be receiving Adobe emails to a dedicated MSOutlook mailbox and will need to upload the Adobe XML attachement to our Oracle database on Sun!

Is there a Java/Outlook API/JDK that will monitor for new emails a then allow us to read the email attachement? via Java or even C# or Vb as a last resort?

Thanks very much!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I wrote a C# app that monitored my exchange directory just for kicks one time. I don't think there is a pure java solution for this unless you are setup with POP access which you could use the JavaMail API for. But actually getting into the MS exchange server takes some wonderful COM libraries.


GenRocket - Experts at Building Test Data
bob connolly
Ranch Hand

Joined: Mar 10, 2004
Posts: 204
I've been looking for a Java API that will allow me to access an OUTLOOK mailbox and extract the XML data associated with the email attachments!

Do you kmow if there are any 'non-license' Java APIs available as of yet?

Thanks Gregg!
bob connolly
Ranch Hand

Joined: Mar 10, 2004
Posts: 204
Sorry Gregg, i meant to ask you, if you still have that C# program that you wrote to access OUTLOOK?

Thanks Gregg!
Amit Siinngghh
Greenhorn

Joined: Jun 19, 2004
Posts: 12
you can use the javamail API (IMAP) to logon to a exchange server and check the folders for number of messages.

With a little effort you could also download the attachment as a byte array. Also, beware of the Multipart messages you need to treat them seperately.

for sample example see the documentation at sun's website.

-Amit
 
GeeCON Prague 2014
 
subject: Need to monitor MSNOutlook for incoming mail