Calling OUtlook using VB.net

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Does it work with this type of ns.Logon("", "", False, False)? Or without
using ns.Logon() at all?
 
Back
Top