服务器响应为:5.7.7本地域中的发件人未知

时间:2012-11-16 11:49:06

标签: asp.net visual-studio-2010 email sendmail

当我尝试通过SMTP服务器发送邮件时,异常即将到来。 这是例外:

System.Net.Mail.SmtpException: Transaction failed. 
The server response was: 5.7.7 Sender Unknown in Local Domain . at 
System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at 
System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from) at 
System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String 
deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage 
message) at _Default.Button1_Click1(Object sender, EventArgs e) 
in d:\pjt\mail_check\Default.aspx.cs:line 39

1 个答案:

答案 0 :(得分:0)

检查link。这可能会有所帮助