报错:
<401> Unauthorized代码如下: - ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
- service.UseDefaultCredentials = false;
- service.Credentials = new WebCredentials("mym@jntxd.com", "password");
- service.Url = new Uri("https://jntxd.com/ews/exchange.asmx");
- EmailMessage message1 = new EmailMessage(service);
- message1.ToRecipients.Add("yuanxu@jntxd.com");
- message1.Subject = "Status Update";
- message1.Body = "Project complete!";
- message1.Send();
Exchange: 2013 SP1
DNS: jntxd.com正常解析,nslookup检查地址是对的,可ping通,且已进行CA签名
域:ActiveDirectory已部署,测试机已加入域,通过Web App可发送
邮件SSL设置: 身份验证: 已验证同样的代码可以向outlook.com发送邮件,所以个人觉得
问题应该是出在
服务器配置上面
请大家多帮忙