jmail问题,急!
<%
Set JMail=server.createobject( "JMail.Message ")
JMail.silent = true
JMail.Logging = true
JMail.Charset = "gb2312 "
JMail.MailServerUserName = "leixun_163 " '输入smtp服务器验证登陆名 (邮局中任何一个用户的Email地址) -----改
JMail.MailServerPassword = "888888 " '输入smtp服务器验证密码 (用户Email帐号对应的密码) -----改
JMail.From = "leixun_163@163.com " '发件人Email
JMail.FromName = "中国工程项目招标网 " '发件人姓名
JMail.AddRecipient "wushuang4@163.com " '收件人Email,多个收件人,就重复多行 -----改
'JMail.AddRecipient "info@cnkl.net " '第二个收信地址----改成7个地址
JMail.Subject = "中国工程项目招标网会员确认信 " '信件主题
JMail.Body = "感谢您注册中国工程项目招标网!: " & " 用户:aaaa "& vbcrlf & "密码:bbb " '换行符 & vbcrlf &
JMail.Send ( "smtp.163.com ") 'smtp服务器地址(mail.您的域名)-----改
JMail.Priority=2
JMail.Close()
set JMail = nothing
response.Write( "发送完毕! ")
%>
上面这断代码可以运行成功,依葫芦画瓢,将163邮箱替换成126邮箱怎么就不行了能,代码如下:
<%
Set JMail=server.createobject( "JMail.Message ")
JMail.silent = true
JMail.Logging = true
JMail.Charset = "gb2312 "
JMail.MailServerUserName = "wert " '输入smtp服务器验证登陆名 (邮局中任何一个用户的Email地址) -----改
JMail.MailServerPassword = "888888 " '输入smtp服务器验证密码 (用户Email帐号对应的密码) -----改
JMail.From = "wert@126.com " '发件人Email
JMail.FromName = "中国工程项目招标网 " '发件人姓名
JMail.AddRecipient "wushuang4@163.com " '收件人Email,多个收件人,就重复多行 -----改
'JMail.AddRecipient "info@cnkl.net " '第二个收信地址----改成7个地址
JMail.Subject = "中国工程项目招标网会员确认信 " '信件主题
JMail.Body = "感谢您注册中国工程项目招标网!: " & " 用户:aaaa "& vbcrlf & "密码:bbb " '换行符 & vbcrlf &
JMail.Send ( "smtp.126.com ") 'smtp服务器地址(mail.您的域名)-----改
JMail.Priority=2
JMail.Close()
set JMail = nothing
response.Write( "发送完毕! ")
%>
是不是身份验证的用户名不对呢?如果不对那么163邮箱不也是取的“@”前面的字符串吗?
------解决方案--------------------参考:
http://www.jxxg.com/blog/dh20156_369/article.asp?id=76