[英]5.7.3 Client does not have permission to submit mail to this server on windows 7
I used following code to send E-Mail using exchange server in a win form-application(.net 4 client profile): 我使用以下代码在win表单应用程序(.net 4客户端配置文件)中使用交换服务器发送电子邮件:
public void SendEmail(string From,
string To,
string Subject,
string Body,
string AttachmentFile)
{
try
{
SmtpClient sMail = new SmtpClient("xs1.iasc.net");//exchange or smtp server goes here.
var SMTPUserInfo = new System.Net.NetworkCredential("user", "pass");
sMail.UseDefaultCredentials = false;
sMail.Credentials = SMTPUserInfo;
sMail.DeliveryMethod = SmtpDeliveryMethod.Network;
var msg = new MailMessage();
msg.BodyEncoding = System.Text.Encoding.GetEncoding("utf-8");
msg.IsBodyHtml = true;
msg.From = new MailAddress(From);
msg.To.Add(To);
msg.Subject = Subject;
msg.Body = Body;
sMail.Send(msg);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
It works correctly in windows XP but when I run it on Windows 7, I get following error: 它在Windows XP中正常运行,但是在Windows 7上运行时,出现以下错误:
Client does not have permission to submit mail to this server.
客户端无权向该服务器提交邮件。 The server response was: 5.7.3 Client does not have permission to submit mail to this server.
服务器响应为:5.7.3客户端无权向该服务器提交邮件。
Any Idea? 任何想法?
The IP address of your windows 7 client is probably blocked in your Exchange - either in the receive connector or in the antispam IP blocklist. Windows 7客户端的IP地址可能已在Exchange中被阻止-在接收连接器或反垃圾邮件IP阻止列表中。
By setting Local Security Setting
to Send LM & NTLM -use NTLMv2 session security if negotiated.
通过将“
Local Security Setting
为“ Send LM & NTLM -use NTLMv2 session security if negotiated.
my problem solved: 我的问题解决了:
Control Panel>All Control Panel Items>Administrative Tools>Local Security Policy>Security Settings>Local Policies>Security Options>Network Security : LAN Manager Authentication Level
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.