C
Chris
I have the following code in c#:
app = new Outlook.ApplicationClass();
ns = app.GetNamespace("MAPI");
MessageBox.Show("Going for the auto-login!");
ns.Logon("someProfile", "somePassword", false, true);
MessageBox.Show("I tried my best!");
Everything works fine if I'm already logged into outlook but this is
something I want done even if I'm not, hence the "ns.Logon"-line. The
problem is that I still get prompted for a password (the profile is
correct) and this happens between the two debugging messageboxes I've put
in.
Any suggestions on what's wrong?
Regards
Chris
app = new Outlook.ApplicationClass();
ns = app.GetNamespace("MAPI");
MessageBox.Show("Going for the auto-login!");
ns.Logon("someProfile", "somePassword", false, true);
MessageBox.Show("I tried my best!");
Everything works fine if I'm already logged into outlook but this is
something I want done even if I'm not, hence the "ns.Logon"-line. The
problem is that I still get prompted for a password (the profile is
correct) and this happens between the two debugging messageboxes I've put
in.
Any suggestions on what's wrong?
Regards
Chris