jmail.Message  Jmail=new jmail.Message();
Jmail.Charset = "GB2312";
Jmail.AddRecipient("***@163.com","","");
Jmail.From = "[email protected]";
Jmail.MailServerUserName = "user";
//发件人邮件密码,即登陆FromEmail的密码
Jmail.MailServerPassWord = "123";
//设置邮件标题
Jmail.Subject = "Subject";
//邮件内容
Jmail.Body = "body";
//Jmail发送的方法
Jmail.Send("Pop3.163.com",false);
Jmail.Close() ;
发送的邮箱的用户名和密码是正确的,能检测到邮箱中有多少邮件。可是发送邮件的时候总提示错误:
The message was undeliverable. All servers failed to receive the message。
大家帮我看看问题出在哪里啊?谁还有更好的发送邮件的代码能不能提供一份啊?