File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Second Outlook postbox

 
Oliver Baum
Greenhorn
Posts: 16
  • 0
  • 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
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • 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
  • 0
  • 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);
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic