开发者

how to open attached document from outlook using java?

开发者 https://www.devze.com 2023-02-14 02:24 出处:网络
is it possible to open attached document from outlook using java? Every hour i receive email with text file attached.

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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消