D
daniel.p.nguyen
Hi,
I was hoping someone could give me a hand.
I wrote a program to automatically read email from outlook. The
application successfully read email from outlook when outlook is
opened. But when I shut down outlook, the program can no longer read
email. Or it other words it doesn't have access to exchange server.
Other notes, I have cached mode turn off for this specific email
account because I always want to be able to read the latest email.
Cache mode does not reliably guaranteed that I will get the latest
mail when trying to retrieve mail programmatically.
So this is the error which comes back when I try to access email when
Outlook is not running.
Does any one know if it is even possible to read email when an
instance of outlook is not running (the email account having cache
mode turn off)? If it is possible, do you know how to go about it?
Here is the code which I use to retrieve email from outlook. It's in
C# but i'm sure it's very similar in VB.
// #################################################
using Microsoft.Office.Interop.Outlook;
..
..
..
Application myOutLook = new Application();
myOutlook.Session.Logon(userName, password, false, false);
// #################################################
this code works perfectly fine when I have outlook open. But when I
shut down outlook, this is the error which I receive.
"The server is not available. Contact your administrator if the
condition persists."
And if you are thinking that exchange might be down, then nope.
Exchange is available.
So if any one can lend a hand, I would greatly appreciate it. Thanks
in advance.
I was hoping someone could give me a hand.
I wrote a program to automatically read email from outlook. The
application successfully read email from outlook when outlook is
opened. But when I shut down outlook, the program can no longer read
email. Or it other words it doesn't have access to exchange server.
Other notes, I have cached mode turn off for this specific email
account because I always want to be able to read the latest email.
Cache mode does not reliably guaranteed that I will get the latest
mail when trying to retrieve mail programmatically.
So this is the error which comes back when I try to access email when
Outlook is not running.
Does any one know if it is even possible to read email when an
instance of outlook is not running (the email account having cache
mode turn off)? If it is possible, do you know how to go about it?
Here is the code which I use to retrieve email from outlook. It's in
C# but i'm sure it's very similar in VB.
// #################################################
using Microsoft.Office.Interop.Outlook;
..
..
..
Application myOutLook = new Application();
myOutlook.Session.Logon(userName, password, false, false);
// #################################################
this code works perfectly fine when I have outlook open. But when I
shut down outlook, this is the error which I receive.
"The server is not available. Contact your administrator if the
condition persists."
And if you are thinking that exchange might be down, then nope.
Exchange is available.
So if any one can lend a hand, I would greatly appreciate it. Thanks
in advance.