retrieve a list of all configured email accounts

  • Thread starter Thread starter manojkurien
  • Start date Start date
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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
Back
Top