最新下载
热门教程
- 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
相关文章
- 实用伴唱app下载推荐 热门伴唱软件排行榜 07-30
- 免费视频提取软件合集 值得推荐的视频提取软件盘点 07-30
- 有哪些软件英语推荐 值得推荐的英语app盘点 07-30
- 日结临时工app哪个平台靠谱 真实可靠的日结临时工app推荐 07-30
- ai做ppt一键生成工具推荐 ai做ppt一键生成工具有哪些 07-30
- 学泰语的app哪个更好 学泰语的app实用分享 07-30