邮件发送失败用户代码未处理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 = "Hello 你好";//发送邮件的标题
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);
} 邮件 --------------------编程问答-------------------- 126的邮箱服务器是不能用的!
用QQ的试试
补充:.NET技术 , ASP.NET