来自 .net 应用程序的 SMTP 邮件
我们编写使用 SMTP 发送自动电子邮件警报的应用程序。我们通常将应用程序配置为发送到公司内的通讯组,以便我们可以使用 Exchange/Outlook 轻松配置收件人。问题是,目前我们要求从我们的应用程序接收邮件的通讯组必须允许未经身份验证的发件人。每隔一段时间,交换管理员就会进行更改,以便组要求所有发件人都经过身份验证。尽管该要求可能是最佳实践,但它会阻止该组从我们的应用程序接收自动警报。我们如何更改我们的应用程序,以便将它们视为经过身份验证的发件人?
We write applications that send out automated email alerts using SMTP. We generally configure the applications to send to distribution groups within the company so we can easily configure recipients using exchange/outlook. The issue is that currently we require that distribution groups receiving mail from our applications must allow senders that are not authenticated. Every once in a while an exchange admin goes in a changes that so the groups requirement that all senders are authenticated. Although that requirement is probably best practice, it prevents the group from receiving automated alerts from our apps. How can we change our apps so they are concidered authenticated senders?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请您的 Exchange 管理员向您提供一个帐户的凭据,您的代码可以通过该帐户发送通知。在代码的 SmtpClient.Credentials 属性。
Ask your Exchange admins to provide you with the credentials of an account from which your code can send notifications. Use these credentials in your code's SmtpClient.Credentials Property.