• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Second Outlook postbox

 
Oliver Baum
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15354
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking how to do this from a Java program, or does your question not have anything to do with Java at all?
 
Oliver Baum
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic