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
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.
精彩评论