How can to change outlook profile programmatically?

C

CS

Have two profiles in my PC
Outlook1 - default
Outlook2

Changing Profile names in Logon method - doesn't work. It still picks
default one.

Outlook.Application outlook = new Outlook.ApplicationClass();
Outlook.NameSpace ns = outlook.GetNamespace("Mapi");
ns.Logon("Outlook1", "", true, true);
 

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