Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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


Win a copy of The Software Craftsman this week in the Agile forum!
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: 14667
    
  25

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);
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Second Outlook postbox