Re: Accessing Exchange mailbox from WinForm
- From: "Henning Krause [MVP]" <newsgroups.remove@xxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Mar 2006 11:55:51 +0100
Hello Jay,
Dan already answered the first question.
As with your second question:
You can simply use request.Crededentials =
CredentialCache.DefaultCredentials.
this will use integrated authentication.
Greetings,
Henning Krause
"Jay Williams" <JayWilliams@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A36675FA-E7BA-46F6-832F-5984FEB731F9@xxxxxxxxxxxxxxxx
Thanks for your response.
I have a few questions, however:
1) Why does Outlook use MAPI and why shouldn't I?
2) I see, in the sample code you directed me to that they'r doing the
following (with WebDAV):
MyCredentialCache.Add(new System.Uri(strRootURI), "NTLM",
new System.Net.NetworkCredential(strUserName, strPassword, strDomain));
Is there a way I can simply pass along the Credentials via the Windows
Principal or Windows Identity so that I don't have to type in a username
and
password? If not, what's the point of Windows Authentication?
I want anyone on our network to be able to fire up this app and see their
own Inbox (for example) without having to type anything in. After all,
they're already Authenticated by Windows. Why should I have to have them
type
anything else it?
Thanks a ton!
Jay
"Henning Krause [MVP]" wrote:
Hello,
Outlook uses MAPI.. and from C# you don't want to use this :-) Actually,
it's not even supported.
One method you can use is WebDAV. You can find some examples here:
http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_esdk_key_tasks.asp and
the reference here:
http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_webdav_web_store_http_webdav_protocol_reference.asp
All communications are done with the HttpRequest Class, which supports
Windows Authentication.
Greetings,
Henning Krause
"Jay Williams" <JayWilliams@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1E5B3E0C-502C-4EA1-9FD9-D9A440F31F8D@xxxxxxxxxxxxxxxx
Can someone give me some C# sample code for retrieving mail from an
Exchange
folder (such as "Inbox" or "Sent Items") using Windows Authentication
from
a
WinForm app? Or, just point me to a website that has a sample.
How does Outlook do all of its stuff? I suspect this is how I would
want
to
do it.
Thanks,
Jay
.
- References:
- Re: Accessing Exchange mailbox from WinForm
- From: Henning Krause [MVP]
- Re: Accessing Exchange mailbox from WinForm
- Prev by Date: Re: Accessing Exchange mailbox from WinForm
- Next by Date: Re: Imp. Question Exhange Server
- Previous by thread: Re: Accessing Exchange mailbox from WinForm
- Next by thread: Re: Imp. Question Exhange Server
- Index(es):
Relevant Pages
|