尝试在asp.net中发送邮件时发生未处理的异常

时间:2012-11-16 07:31:20

标签: asp.net visual-studio-2008 sendmail

当我尝试发送邮件时,我得到了这些例外

  

System.Net.Mail.SmtpException:事务失败。服务器响应   是:5.7.7本地域中的发件人未知。在   System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode,   System.Net.Mail.MailCommand.Send的字符串响应(SmtpConnection   conn,Byte [] command,String from)at   System.Net.Mail.SmtpTransport.SendMail(MailAddress sender,   MailAddressCollection收件人,String deliveryNotify,   SmtpFailedRecipientException&安培;例外)   System.Net.Mail.SmtpClient.Send(MailMessage消息)at   _Default.Button1_Click1(Object sender,EventArgs e)在d:\ pjt \ mail_check \ Default.aspx.cs:第39行

0 个答案:

没有答案