title: UseDefaultCredentials with Exchange Web Services
body: <p>I'm a pretty new programmer. One of the things I've been tasked with at work is getting our custom tools to create draft emails and drop them into the draft email folder of the user running the tool. We presently use Exchange Server 2010 (but are in the process of migrating over to Exchange Online).</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.iewshttpwebrequest.usedefaultcredentials%28v=exchg.80%29.aspx" rel="nofollow">This link</a> talks about a UseDefaultCredentials but I can't seem to work out how to implement it. I created an ExchangeService object called service and managed to interact with our Exchange server using this for credentials:</p>
  
  <p>service.Credentials = new WebCredentials("my login name", "my password");</p>
  
  <p>I'd like to be able to eliminate that from the code and have it use the credentials of the logged-in user who is using the tool. Is that possible?</p>