Reputation: 6798
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.
using Microsoft.Exchange.WebServices.Data;
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.UseDefaultCredentials = true;
service.AutodiscoverUrl("[email protected]");
Upvotes: 1
Views: 3574
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