Muflix
Muflix

Reputation: 6798

Connect to Exchange email with windows authentication

Its possible to connect to Exchange email box with windows authentication ? I cant have password in the program because of security compliance. If yes, how? Thank you.

working solution

code

using Microsoft.Exchange.WebServices.Data;
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.UseDefaultCredentials = true;
service.AutodiscoverUrl("[email protected]");

Upvotes: 1

Views: 3574

Answers (1)

Adrian Fâciu
Adrian Fâciu

Reputation: 12562

If you use ExchangeServiceBinding class from Exchange Web Services you have UseDefaultCredentials property. Setting this to true will make the authentication use the current user.

Upvotes: 1

Related Questions