Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to monitor MSNOutlook for incoming mail

 
bob connolly
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
bob connolly
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic