【发布时间】:2023-03-03 08:22:24
【问题描述】:
我正在使用以下代码,但在尝试连接到 SMTP 服务器时出现错误。我没有提供任何身份验证凭据来访问它。
var client = new SmtpClient()
await client.ConnectAsync("199.201.221.19", 587, false);
client.Send(mail);
主机:199.201.221.19 端口:587 错误:System.Security.Authentication.AuthenticationException:根据验证过程,远程证书无效。 实际问题是什么?对此可能的解决方案是什么?
【问题讨论】:
标签: c# email smtp smtpclient mailkit