日期:2014-05-17  浏览次数:20864 次

关于asp使用jmail发邮件的问题?
本人用asp写的一个使用jmail发送邮件程序,前一段时间正常可以发送,可是都到垃圾邮件里面了,现在这一时间,发出的邮件都收不到,不稳定,郁闷,急,那位高手指点迷津,必有重谢,
以下是我的代码:
fsnr = "<table width='600' border='0' cellspacing='0' cellpadding='0'><tr><td height='30' align='left'><span style='font-size:9pt'>Dear"
fsnr = fsnr & "wyj"
fsnr = fsnr & " ,Your new password of Agoodic.com is as follows:</span></td></tr><tr><td height='30' align='left'><span style='font-size:9pt'>Email Address: 451900800@qq.com"

fsnr = fsnr & "</span></td></tr><tr><td height='30' align='left'><span style='font-size:9pt'>PassWord: "
fsnr = fsnr & pwds
fsnr = fsnr & "</span></td></tr><tr><td height='30' align='left'><span style='font-size:9pt'>Welcome to <a href='http://www.agoodic.com' target='_blank'>http://www.agoodic.com</a></span></td></tr></table>"
Set jmail = Server.CreateObject("JMAIL.Message")
jmail.silent = true
jmail.logging = true
jmail.Charset = "utf-8"
jmail.ContentType = "text/html"
JMail.FromName = "451900800@qq.com"
jmail.AddRecipient "wyl365@tom.com"
jmail.From = "451900800@qq.com"
jmail.Subject = "Your New Password TO Agoodic.com"
JMail.MailServerUserName = "451900800@qq.com"
JMail.MailServerPassword = "123456"
jmail.Priority = 1
jmail.body = fsnr
jmail.Send "mail.qq.com"
jmail.Close()

------解决方案--------------------
QQ的一直没用过!

用以前申请的163邮箱做发信箱。

像这样的代码一般都没问题,都是邮箱的问题
------解决方案--------------------
如果能发邮件,那说明你的程序没有问题。 
换成其他的邮箱地址发邮件试试。
如果公司有自己的邮箱系统就用公司的邮箱发试试。
------解决方案--------------------
应该是你的邮件服务器被别人当作垃圾邮件服务器屏蔽了,比换一个好的邮件服务器测试一下吧。
------解决方案--------------------
根据你描述的,那肯定不是你代码的问题了

你可以先换个发送邮箱,看看是不是QQ没给你发出去。发送邮箱测过之后,再换个收件地址试试,是不是那边屏蔽了收不到。

你的JMail.FromName = "451900800@qq.com" 和jmail.Subject = "Your New Password TO Agoodic.com" 都是全英文,可能会被某些邮件服务器当作垃圾。
------解决方案--------------------
邮箱的问题,程序是没错
现在新申请的126. 163 雅虎,sohu,还有多说支持的其实都不知是smtp发邮件了
------解决方案--------------------
一般是邮件服务器的问题~