ExchangeService service = new ExchangeService();
service.Url = new Uri("https://***(host)/ews/exchange.asmx");
service.Credentials= new WebCredentials("username", "password");

//service.AutodiscoverUrl("ssss@xxxx");

EmailMessage message = new EmailMessage(service);
message.Subject ="主题";
message.Body ="内容";
message.ToRecipients.Add("email");
message.ToRecipients.Add("email");
message.Save();

message.SendAndSaveCopy();

 

下载(包含Microsoft.Exchange.WebServices.dll)

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-06-18
  • 2022-01-04
  • 2021-10-26
  • 2022-02-13
  • 2021-09-21
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2021-12-13
  • 2022-02-22
  • 2022-01-11
  • 2022-12-23
  • 2021-12-10
  • 2021-11-25
相关资源
相似解决方案