user618111
user618111

Reputation: 439

how to open attached document from outlook using java?

is it possible to open attached document from outlook using java?

Every hour i receive email with text file attached. i have to open and extract some data from this text file and store it into another text file.

So what i'm doing is to open the email, then right-click and save the attached file for extracting data it's ok.

How could i do it fastly?

thanks

Upvotes: 0

Views: 682

Answers (2)

Tony Merrit
Tony Merrit

Reputation: 171

You can conntect to Outlook with a COM-wrapper. There are libraries like COM4j. You can access the email, extract the data. But IMAP is much simpler.

Upvotes: 1

JB Nizet
JB Nizet

Reputation: 692171

If you receive your mails using IMAP, then you could write a Java application and use JavaMail to connect to the IMAP server, get the mail, and extract data from the attachments.

Upvotes: 2

Related Questions