ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.Credentials = new NetworkCredential("user", "password", "domain"); service.Url = new Uri("https://exchangeserver.com/EWS/Exchange.asmx"); EmailMessage message = new EmailMessage(service); message.Subject = "subject"; message.Body = "body"; message.ToRecipients.Add(sendto@something.com); message.Attachments.AddFileAttachment(c:attached); message.SendAndSaveCopy();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)