我正在使用 smtp (c#) 并尝试将邮件发送到组 id(官方 id),但它无法发送邮件。尽管通过相同的代码我能够将邮件发送到个人 id。知道这里可能有什么问题。以下我正在使用的代码
MailMessage mail = new MailMessage();
mail.To = "group@company.com";
mail.From = "me@company.com";
mail.Subject = "Test Mail: please Ignore";
mail.Body = body;
SmtpMail.SmtpServer = "mailhub.int.company.com";
SmtpMail.Send(mail)
我的邮箱中出现以下错误:
Delivery has failed to these recipients or distribution lists:
group@company.com
Not Authorized. You are not authorized to send to this recipient or distribution list. For distribution lists please check approved senders in the corporate directory.
_____
Sent by Microsoft Exchange Server 2007
Diagnostic information for administrators:
Generating server: GSPWMS005.int.company.com
group@company.com
#550 5.7.1 RESOLVER.RST.AuthRequired; authentication required ##
从错误中我可以知道缺少某些身份验证,但不确定是哪个身份验证或如何解决它。如果我通过我的前景向该组发送邮件,那么它的工作正常。