Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Android Security Essentials Live Lessons this week in the Android 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

It is sorta covered in the JavaRanch Style Guide.
subject: Read MS Outlook from Java Servlet
Similar Threads
How to call multiple servlets from a single form?
Read and write files from a remote server
A backend service
attachements in jsp application
Send file using HTTP from thick application