This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes Read MS Outlook from Java Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Read MS Outlook from Java Servlet" Watch "Read MS Outlook from Java Servlet" New topic

Read MS Outlook from Java Servlet

Rashmi Trivedi
Ranch Hand

Joined: Aug 13, 2001
Posts: 60
Hello Guys
I need your help..I have a situation where i need to write Java Servlet/application to automate the process..

I get email from one of our supplers with the attachments. I then save the attachements to my local drive and copy them to the server..server runs the integration and upload data into our back end system...

I would like to do this..

I would like to write a java tools which does follwoing..

Read the my Inbox and if it finds a message with then it open that email and saves the attachements on the server..

I had look around and i am finding littel difficult to start this assignment..

any thoughts would be really appreciated...

Rashmi Trivedi
Atul Prabhu
Ranch Hand

Joined: Dec 17, 2002
Posts: 60
Hi Rashmi,

In JavaMail you'll find APIs and implementations allowing you to develop fully functional email client applications.You could write your own Outlook replacement.

Here are some links which would definitely help you :

Java Mail Docs

Refer to javax.mail package... it has everything in it.

Hope this helps. Good Luck.

Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
Hi Rashmi,
you have to write the client progrma using javamail API it required activation.jar and mail.jar to do this.

but you need to creoss chek whether your smtp server will allowd to download the mail utside the outlook

you can send the mail easily but reciving mail i ma not sure , u have to chekc with you network admin
abot the smtp ip address

I agree. Here's the link:
subject: Read MS Outlook from Java Servlet
It's not a secret anymore!