Calling OUtlook using VB.net

G

Guest

I have Outlook email account. through VB.net programming I am trying to login
into that inbox. But it is giving following error:

"System.RunTime.Interopservices.ComException (0x86240111): The server is not
available. Contact your administrator if this condition persists. at
Microsfot.Office.Interop.Outlook.NamespaceClass.Logon(Object profiile, Object
passwor, Object showdialog, Object newsession) at [project filename here...]
in [project directory here....]: line [line number here...]"

My source code is below.

app = New Microsoft.Office.Interop.Outlook.Application()
ns = app.GetNamespace("MAPI")
ns.Logon("testbatch", "testbtch", False, false) 'It is failing
here.
...

regards,
Kannan
 
K

Ken Slovak - [MVP - Outlook]

Does it work with this type of ns.Logon("", "", False, False)? Or without
using ns.Logon() at all?
 

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