日期:2014-05-18  浏览次数:20635 次

我要晕了,这个jmail为什么老是错啊
首先添加引用jmail.dll,又用了regsvr32   jmail.dll
再在程序中
using   jmail;


jmail.MessageClass   oJmailMessage   =   new   jmail.MessageClass
………………
if(oJmailMessage.Send( "smtp.sohu.com ",false))     //邮件服务器地址,错误行
{Response.Write( " <script> alert( '发送成功! '); </script> ");}
else
{Response.Write( "发送失败,请检查邮件服务器的设置! ");}


错误提示“The   message   was   undeliverable.   All   servers   failed   to   receive   the   message”.

我已经配置过POP3服务,可是怎么样都是错!
如果把错误行的false改成true就不会错,但是却收不到邮件
为什么,这个地方要怎么搞


------解决方案--------------------
jmail.pop3class popmail=new pop3class();//建立收邮件对象
jmail.message mailmessage;//建立邮件信息接口
jmail.attachments atts;//附件集接口
jmail.attachment att;//附件接口