问:服务器应该支持 jmail组件的吧,我测试了 http://www.zbnauto.com/ajax/jtest.asp 目前打不开 ,jmail组件有测试代码吗
问:提示信息 :
504 Gateway Time-outnginx/127.0.0.1 Lion
答:您好,
测试您提供的地址:http://www.zbnauto.com/ajax/jtest.asp,是可以打开的,并未反馈504的错误,请您清除浏览器缓存,再试试访问。
附图:,非常感谢您长期对我司的支持!
问:我看到了,但是我别的地方能用的邮件发送程序,这里用不了, 你有完整的代码吗?
我的代码如下 :
call Jmail("@qq.com","来自zbn的动态!","是一个测试文件","GB2312","text/html")
Function Jmail(mailto,mailTopic,mailBody,mailCharset,mailContentType)Dim ConstFromNameCn,ConstFromNameEn,ConstFrom,ConstMailDomain,ConstMailServerUserName,ConstMailServerPassword ConstFromNameCn = "ZBNAUTO" ConstFromNameEn = "ZBNAUTO"ConstFrom = "zbn010@zbnauto.com" ConstMailDomain = "smtp.sina.net" ConstMailServerUserName = "zbn010@zbnauto.com" ConstMailServerPassword = "yulihua1a2B3#"
On Error Resume Next Dim myJmail Set myJmail = Server.CreateObject("JMail.Message") myJmail.Logging = TruemyJmail.ISOEncodeHeaders = FalsemyJmail.ContentTransferEncoding = "base64"myJmail.AddHeader "Priority","3"myJmail.AddHeader "MSMail-Priority","Normal"myJmail.AddHeader "Mailer","Microsoft Outlook Express 6.00.2800.1437"myJmail.AddHeader "MimeOLE","Produced By Microsoft MimeOLE V6.00.2800.1441"myJmail.Charset = mailCharset myJmail.ContentType = mailContentType If UCase(mailCharset) = "GB2312" Then myJmail.FromName = ConstFromNameCn Else myJmail.FromName = ConstFromNameEn End If myJmail.From = ConstFrom myJmail.Subject = mailTopic myJmail.Body = mailBody myJmail.AddRecipient mailTo myJmail.MailDomain = ConstMailDomain myJmail.MailServerUserName = ConstMailServerUserName myJmail.MailServerPassword = ConstMailServerPassword myJmail.Send ConstMailDomain myJmail.Close Set myJmail=nothing
If Err Then Jmail=Err.Description Err.ClearEnd If
On Error Goto 0 End Function
问:是发送的时候,提示 504 Gateway Time-outnginx/127.0.0.1 Lion ,jtest.asp是能正常访问.
答:您好,您可以参考https://www.west.cn/faq/list.asp?unid=167和https://www.west.cn/faq/list.asp?unid=168 关于jmail发送邮件代码,请查看,非常感谢您长期对我司的支持!
问:http://www.zbnauto.com/ajax/jtest4.asp 用你们的方法,测试失败(是商业版邮箱)
问:可以了,谢谢兄弟,你们的代码是错误的!!
答:您好,若有问题可以及时反馈工单 ,
非常感谢您长期对我司的支持,谢谢!