SMTP mail from .net applications
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. Althoug开发者_如何学Ch 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?
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.
精彩评论