邮件发送失败用户代码未处理SmtpException
protected void Button1_Click(object sender, EventArgs e){
MailMessage maiIMsg = new MailMessage();
maiIMsg.From = new MailAddress("lingde_yx@126.com","陈灵");
maiIMsg.To.Add(new MailAddress("lingde_yx@126.com","陈灵"));
maiIMsg.Subject = "H设置ello 你好";//发送邮件的标题
maiIMsg.Body = "Tai xie E le";//发送邮件内容
SmtpClient client = new SmtpClient("171848296@qq.com");
client.Credentials = new NetworkCredential("lingde_yx@126.com","chenling");
client.Send(maiIMsg);
} --------------------编程问答-------------------- 你这个new SmtpClient不对呀。参数应该是server的名称呀。 --------------------编程问答--------------------
补充:.NET技术 , .NET技术前瞻