aspose file tools*
The moose likes Java in General and the fly likes Second Outlook postbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Second Outlook postbox" Watch "Second Outlook postbox" New topic
Author

Second Outlook postbox

Oliver Baum
Greenhorn

Joined: Jan 12, 2005
Posts: 16
Hi,

is it possible to open a mail store in outlook that is not my default store (which is in my outlook profile)?
I can open my default store an work with the mails. But now I need to open another outlook postbox. I see it in outlook and I can read the mails.

Thanks
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14432
    
  23

Are you asking how to do this from a Java program, or does your question not have anything to do with Java at all?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Oliver Baum
Greenhorn

Joined: Jan 12, 2005
Posts: 16
Sorry.

Yes I ask how can I do this from a Java Programm.

To open my default store, I do it like this:

Session session = Session.getDefaultInstance(props, null);
store = session.getStore("IMAP");
store.connect(...)


Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_WRITE);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Second Outlook postbox