首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

jmail接收邮件报错?This function is not included in this version of jmail.该如何解决

2012-03-11 
jmail接收邮件报错?This function is not included in this version of jmail.我用JMail发邮件成功,收邮件

jmail接收邮件报错?This function is not included in this version of jmail.
我用JMail发邮件成功,收邮件就报错了This function is not included in this version of jmail.代码:jpop.Connect("HelloWorldServer@163.com", ******, "pop.163.com", 110);
请大侠帮帮忙,急死我了

[解决办法]
jmail.Message Jmail = new jmail.Message();
DateTime t = DateTime.Now;
String Subject = "";
String body = "";
String FromEmail = "";
String ToEmail = "";
Jmail.Charset = "GB2312";
Jmail.ContentType = "text/html";
Jmail.AddRecipient(ToEmail, "", "");
Jmail.From = FromEmail;
Jmail.MailServerUserName = "";
Jmail.MailServerPassWord = "";
Jmail.Subject = Subject;
Jmail.ContentType="text/html";
Jmail.Body = body + t.ToString();
Jmail.Send("", false);
Jmail.Close();

热点排行