ASP发邮件,装了Jmail组件,可是发送出错,高手指教!

来源:百度知道 编辑:UC知道 时间:2024/05/30 11:29:06
代码如下:
<%
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.Charset = "gb2312"
JMail.ContentType="text/html"
JMail.ServerAddress ="mail.tea600.com"
JMail.Sender = "chenshouhu@tea600.com"
JMail.Subject = "html格式的邮件"

JMail.AddRecipient "pengpeng-410@163.com"

JMail.Body ="你好,谢谢你访问我们的网站" & "yourHost"

JMail.Priority = 1

JMail.AddHeader "Originating-IP",Request.ServerVariables("REMOTE_ADDR")
JMail.Execute 这就是第十六行
set jMail=nothing
%>
错误如下:
技术信息(适用于支持人员)

错误类型:
jmail.SMTPMail (0x8000FFFF)
/sendmail.asp, 第 16 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; IEShow Toolbar; IEShow oktieToolBar)

页:
GET /sendmail.asp

时间:
20

JMail发送需要发送邮箱帐号密码~~~~~
换下面这段试试看吧`~~
当然把帐号密码填上,还有确保你的Mail服务器能够发送`~~

on error resume next
dim JMail
Set JMail = Server.CreateObject("JMail.Message")
'JMail.silent = true
JMail.Logging = True
JMail.Charset = "gb2312"
JMail.ContentType = "text/html"
JMail.From = "chenshouhu@tea600.com"
JMail.FromName = "发信人"
JMail.MailServerUserName = "邮箱帐号"
JMail.MailServerPassword = "邮箱密码"
JMail.Priority = 1
JMail.AddRecipient "pengpeng-410@163.com"
JMail.Subject = "html格式的邮件"
JMail.Body = "你好,谢谢你访问我们的网站" & yourHost
'JMail.AddHeader "Originating-IP", GBL_IPAddress
JMail.Send("mail.tea600.com")
Set JMail = nothing
If err then Response.write "发送错误"