retrieve a list of all configured email accounts

M

manojkurien

Hi,

Is it possible to programatically access a list of all email accounts
that a user has configured in Outlook? I'm looking for details for
each configured email account including
User Information (Name, Email Address)
Server Information (incoming POP3 / IMAP, Outgoing SMTP)
Logon Information : User Name

Would this be possible (in a consistent manner?) across different
versions of Outlook? If so, how exactly would I go about it? Are there
any third party libraries like Redemption that I can use to achieve
this?

Thanks in advance,
manoj
 
G

Guest

Outlook 2007 has the NameSpace.Accounts collection to access all that
information. For prior Outlook versions, you need to use Redemption's
Profman library.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault
 
D

Dmitry Streblechenko

Actually ProfMan will list only MAPI based accounts, and POP3/SMTP are no
longer MAPI based as of Outlook 2002.
You can use RDOSession.Accounts collection (Outlook 2002 and higher) -
http://www.dimastr.com/redemption/rdo/RDOAccounts.htm , it will list both
MAPI and non-MAPI accounts

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Outlook 2007 has the NameSpace.Accounts collection to access all that
information. For prior Outlook versions, you need to use Redemption's
Profman library.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007 & WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


Hi,

Is it possible to programatically access a list of all email accounts
that a user has configured in Outlook? I'm looking for details for
each configured email account including
User Information (Name, Email Address)
Server Information (incoming POP3 / IMAP, Outgoing SMTP)
Logon Information : User Name

Would this be possible (in a consistent manner?) across different
versions of Outlook? If so, how exactly would I go about it? Are there
any third party libraries like Redemption that I can use to achieve
this?

Thanks in advance,
manoj
 
M

manojkurien

Thanks for the quick reply, Dmitry.

So what I understand is that I can use Redemption's RDO objects to do
this for all Outlook 2002 and higher versions, and for older versions
of Outlook, I will need to use Profman. Is this correct?

Actually ProfMan will list only MAPI based accounts, and POP3/SMTP are no
longer MAPI based as of Outlook 2002.
You can use RDOSession.Accounts collection (Outlook 2002 and higher) -http://www.dimastr.com/redemption/rdo/RDOAccounts.htm, it will list both
MAPI and non-MAPI accounts

--
Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Outlook 2007 has the NameSpace.Accounts collection to access all that
information. For prior Outlook versions, you need to use Redemption's
Profman library.
--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007 & WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web:http://www.collaborativeinnovations.ca
Blog:http://blogs.officezealot.com/legault
 
M

manojkurien

Also, would it be possible to programatically add a new email account
using Redemptions RDO objects?

Thanks for the quick reply, Dmitry.

So what I understand is that I can use Redemption's RDO objects to do
this for all Outlook 2002 and higher versions, and for older versions
of Outlook, I will need to use Profman. Is this correct?

Actually ProfMan will list only MAPI based accounts, and POP3/SMTP are no
longer MAPI based as of Outlook 2002.
You can use RDOSession.Accounts collection (Outlook 2002 and higher) -http://www.dimastr.com/redemption/rdo/RDOAccounts.htm, it will list both
MAPI and non-MAPI accounts
--
Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
Outlook 2007 has the NameSpace.Accounts collection to access all that
information. For prior Outlook versions, you need to use Redemption's
Profman library.
--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007 & WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web:http://www.collaborativeinnovations.ca
Blog:http://blogs.officezealot.com/legault
Hi,
Is it possible to programatically access a list of all email accounts
that a user has configured in Outlook? I'm looking for details for
each configured email account including
User Information (Name, Email Address)
Server Information (incoming POP3 / IMAP, Outgoing SMTP)
Logon Information : User Name
Would this be possible (in a consistent manner?) across different
versions of Outlook? If so, how exactly would I go about it? Are there
any third party libraries like Redemption that I can use to achieve
this?
Thanks in advance,
manoj
 
G

Guest

I think you told me that last month! I'm working too hard...

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


Dmitry Streblechenko said:
Actually ProfMan will list only MAPI based accounts, and POP3/SMTP are no
longer MAPI based as of Outlook 2002.
You can use RDOSession.Accounts collection (Outlook 2002 and higher) -
http://www.dimastr.com/redemption/rdo/RDOAccounts.htm , it will list both
MAPI and non-MAPI accounts

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Outlook 2007 has the NameSpace.Accounts collection to access all that
information. For prior Outlook versions, you need to use Redemption's
Profman library.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007 & WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


Hi,

Is it possible to programatically access a list of all email accounts
that a user has configured in Outlook? I'm looking for details for
each configured email account including
User Information (Name, Email Address)
Server Information (incoming POP3 / IMAP, Outgoing SMTP)
Logon Information : User Name

Would this be possible (in a consistent manner?) across different
versions of Outlook? If so, how exactly would I go about it? Are there
any third party libraries like Redemption that I can use to achieve
this?

Thanks in advance,
manoj
 
D

Dmitry Streblechenko

Correct.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Thanks for the quick reply, Dmitry.

So what I understand is that I can use Redemption's RDO objects to do
this for all Outlook 2002 and higher versions, and for older versions
of Outlook, I will need to use Profman. Is this correct?

Actually ProfMan will list only MAPI based accounts, and POP3/SMTP are no
longer MAPI based as of Outlook 2002.
You can use RDOSession.Accounts collection (Outlook 2002 and
higher) -http://www.dimastr.com/redemption/rdo/RDOAccounts.htm, it will
list both
MAPI and non-MAPI accounts

--
Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Outlook 2007 has the NameSpace.Accounts collection to access all that
information. For prior Outlook versions, you need to use Redemption's
Profman library.
--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007 & WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web:http://www.collaborativeinnovations.ca
Blog:http://blogs.officezealot.com/legault
Is it possible to programatically access a list of all email accounts
that a user has configured in Outlook? I'm looking for details for
each configured email account including
User Information (Name, Email Address)
Server Information (incoming POP3 / IMAP, Outgoing SMTP)
Logon Information : User Name
Would this be possible (in a consistent manner?) across different
versions of Outlook? If so, how exactly would I go about it? Are there
any third party libraries like Redemption that I can use to achieve
this?
Thanks in advance,
manoj
 
D

Dmitry Streblechenko

Nope. MS did not document the IOlkAccountManager pieces responsible for the
new account creation.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Also, would it be possible to programatically add a new email account
using Redemptions RDO objects?

Thanks for the quick reply, Dmitry.

So what I understand is that I can use Redemption's RDO objects to do
this for all Outlook 2002 and higher versions, and for older versions
of Outlook, I will need to use Profman. Is this correct?

Actually ProfMan will list only MAPI based accounts, and POP3/SMTP are
no
longer MAPI based as of Outlook 2002.
You can use RDOSession.Accounts collection (Outlook 2002 and
higher) -http://www.dimastr.com/redemption/rdo/RDOAccounts.htm, it will
list both
MAPI and non-MAPI accounts
--
Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Outlook 2007 has the NameSpace.Accounts collection to access all that
information. For prior Outlook versions, you need to use
Redemption's
Profman library.
--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure,
MOSS
2007 & WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web:http://www.collaborativeinnovations.ca
Blog:http://blogs.officezealot.com/legault
Is it possible to programatically access a list of all email
accounts
that a user has configured in Outlook? I'm looking for details for
each configured email account including
User Information (Name, Email Address)
Server Information (incoming POP3 / IMAP, Outgoing SMTP)
Logon Information : User Name
Would this be possible (in a consistent manner?) across different
versions of Outlook? If so, how exactly would I go about it? Are
there
any third party libraries like Redemption that I can use to achieve
this?
Thanks in advance,
manoj
 
D

Dmitry Streblechenko

You do :)

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
I think you told me that last month! I'm working too hard...

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007 & WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


Dmitry Streblechenko said:
Actually ProfMan will list only MAPI based accounts, and POP3/SMTP are no
longer MAPI based as of Outlook 2002.
You can use RDOSession.Accounts collection (Outlook 2002 and higher) -
http://www.dimastr.com/redemption/rdo/RDOAccounts.htm , it will list both
MAPI and non-MAPI accounts

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Outlook 2007 has the NameSpace.Accounts collection to access all that
information. For prior Outlook versions, you need to use Redemption's
Profman library.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007 & WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


Hi,

Is it possible to programatically access a list of all email accounts
that a user has configured in Outlook? I'm looking for details for
each configured email account including
User Information (Name, Email Address)
Server Information (incoming POP3 / IMAP, Outgoing SMTP)
Logon Information : User Name

Would this be possible (in a consistent manner?) across different
versions of Outlook? If so, how exactly would I go about it? Are there
any third party libraries like Redemption that I can use to achieve
this?

Thanks in advance,
manoj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top