最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp发送邮件代码
时间:2022-07-02 22:43:16 编辑:袖梨 来源:一聚教程网
function SendMail(MailServerAddress,AddRecipient,Subject,Body,Sender,MailFrom)
on error resume next
Dim JMail
Set JMail=Server.CreateObject("JMail.SMTPMail")
if err then
SendMail= "
err.clear
exit function
end if
JMail.Logging=True
JMail.Charset="gb2312"
JMail.ContentType = "text/html"
JMail.ServerAddress=MailServerAddress
JMail.AddRecipient=AddRecipient
JMail.Subject=Subject
JMail.Body=MailBody
JMail.Sender=Sender
JMail.From = MailFrom
JMail.Priority=1
JMail.Execute
Set JMail=nothing
if err then
SendMail=err.description
err.clear
else
SendMail="OK"
end if
end function
相关文章
- 如何交易5GASS币?2025OKX交易所高效攻略 06-16
- 《花亦山心之月》莹儿头像获得方法有哪些 06-16
- 最新2025币圈十大现货交易全球交易所TOP10-最安全虚拟币交易app币安推荐 06-16
- 《时光杂货店》人才推荐细节解读 06-16
- ZKJ、KOGE暴跌80%成积分“绞肉机”,币安Alpha还能玩吗? 06-16
- 《白荆回廊》鸢技能有哪些 06-16