最新下载
热门教程
- 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
相关文章
- Binance.US已上线VIRTUAL 04-30
- binance官网电脑下载_binance苹果版下载地址V2.57.7 04-30
- 比特币交易量最大的交易所是哪个?全球最大的比特币交易平台排名 04-30
- 奥比岛梦想国度卡死闪退有哪些解决方法 04-30
- DNF手游骨戒在哪个位置 04-30
- 回望羊驼:当利空成为短暂的财富密码 04-30