vb 用 JMail 出错求教高手!!!!
Dim JMail
Set JMail = CreateObject("jmail.Message")
JMail.Charset = "gb2312"
JMail.Silent = False
JMail.MailServerUserName = "gnxu2009@163.com " 'Email帐号
JMail.MailServerPassWord = "++++++" 'Email密码
JMail.FromName = "gnxu2009@163.com" '发信人姓名
JMail.From = "gnxu2009@163.com " '发邮件地址地址
JMail.Subject = "来信了" '主题
JMail.AddRecipient "gnxu2009@163.com" '收信人地址
JMail.Body = Text1.Text & Text2.Text
JMail.Send ("mail.163.com") 'SMTP服务器,如smtp.sohu.com
Set JMail = Nothing
运行后提示:the message was undeliverable.All servers failed to receive the message
JMail.Send ("mail.163.com")我换成smtp.163.com 邮箱换成sohu 的也不行 去了括号也不行
应如何办谢谢!!!!!!!!
[解决办法]
看起来更象连接错误,你从你运行程序的那台电脑上
telnet mail.163.com 25
等连接上后发
ehlo localhost
看看是不是能成功
[解决办法]
至少我这边无法telnet mail.163.com 25端口,你确信服务器名字对么?
[解决办法]
怎么没给结果啊