大家帮我看看用jmail发邮件为什么出错呢?
xhn 2003-10-20 09:52:38 代码如下:
jmail.MessageClass smtp=new jmail.MessageClass();
smtp.AddRecipient("xhn_21199@163.com","hzc","");
smtp.ContentType="text/html";
smtp.From="xhn_1879.student@sina.com";
smtp.FromName="asdfas";
smtp.Charset="gb2312";
smtp.ReplyTo="xhn_1879.student@sina.com";
smtp.Subject="你好";
smtp.Priority=3;
smtp.MailServerUserName="";
smtp.MailServerPassWord="";
smtp.Logging=true;
smtp.Send("smtp.sina.com.cn",false);
smtp.Close();
出错信息为:
The message was undeliverable. All servers failed to receive the message