最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp使用jmail 发邮件代码
时间:2022-06-30 11:33:07 编辑:袖梨 来源:一聚教程网
要用jmail 组件后才能使用哦.
Sub Jmail(email,topic,mailbody)
On Error Resume Next
Dim JMail
Set JMail=Server.CreateObject("JMail.Message")
JMail.silent=True
JMail.Logging=True
JMail.Charset="gb2312"
If Not(Newasp.MailUserName = "" Or Newasp.MailPassword = "") Then
JMail.MailServerUserName = Newasp.MailUserName '您的邮件服务器登录名
JMail.MailServerPassword = Newasp.MailPassword '登录密码
End If
JMail.ContentType = "text/html"
JMail.Priority = 1
JMail.MailDomain = "govery.cn"
JMail.From = Newasp.MailFrom '邮件地址
JMail.FromName = Newasp.SiteName '网站名称
JMail.AddRecipient email
JMail.Subject = topic
JMail.Body = mailbody
If Err <> 0 Then
SendMail="False"
Else
JMail.Send (Newasp.MailServer) '发邮件服务器地址
JMail.ClearRecipients()
If Err <> 0 Then
SendMail="False"
Else
SendMail="OK"
End If
End If
Set JMail=nothing
End Sub
相关文章
- 王者荣耀侦探能力大测试攻略 王者荣耀侦探能力大测试怎么过 11-22
- 无期迷途主线前瞻兑换码是什么 11-22
- 原神欧洛伦怎么培养 11-22
- 炉石传说网易云音乐联动怎么玩 11-22
- 永劫无间手游确幸转盘怎么样 11-22
- 无期迷途主线前瞻兑换码是什么 无期迷途主线前瞻直播兑换码介绍 11-22