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

Second Outlook postbox

Oliver Baum

Joined: Jan 12, 2005
Posts: 16

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.

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14996

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

Joined: Jan 12, 2005
Posts: 16

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");

Folder folder = store.getFolder("INBOX");;
I agree. Here's the link:
subject: Second Outlook postbox
It's not a secret anymore!