Programatically removing a POP3 account

M

MB

If, in Outlook 2003, I have an exchange account and one or more POP3
accounts set up in the default mail profile, how can I programmatically
remove one of the POP3 accounts?

Is there an API I can use or must I edit the registry? If the latter,
can I just remove the appropriate subtree under
9375CFF0413111d3B88A00104B2A6676 and remove the reference from
{ED475418-B0D6-11D2-8C3B-00104B2A6676}?

The reason for this is that I have an application that adds a POP3
account (using a PRF file) for the user. I want to also give the user
the option of removing the POP3 account that I have created.
 
S

Sue Mosher [MVP-Outlook]

There's no supported way to do that at all. Outlook exposes no API for removing accounts programmatically, and the Extended MAPI API (on which the Redemption Profman library is based) may still not be working in Outlook 2003 (I haven't checked SP2). Since the registry entries related to a POP3 account are not documented, you'd have a lot of hacking and testing to do if you want to go that route and not wind up with a broken profile.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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