asp jmail qq邮箱发送邮件方法

    文章来源:万象互联 更新时间:2017-6-14 15:51:38
分享:

asp jmail qq邮箱发送邮件方法

Jmail发送首先要通过邮件服务器验证。如果你的服务器不支持SMTP或者你的账号不能使用SMTP服务,那么就无法发送。

QQ邮箱默认情况下POP和SMTP服务是关闭的,您只需进入您的QQ邮箱——》【设置】——》【账户】——》【POP3/IMAP/SMTP服务】,进行开启设置。

asp jmail qq邮箱发送邮件代码

01<%
02''服务器必须安装本组件.可在阿江的探针中检查和下载组件
03str1="342342423@qq.com"  ''接收信息的邮箱
04str2="2342424242@qq.com"    ''发送信息的邮箱
05str3="2342424242@qq.com"       ''发送信息的邮箱
06str4="QQ密码"
07str5="aaaaaaaa"    ''邮件主题
08str6="bbbbbbbb"    ''邮件内容
09str7="smtp.qq.com"  ''smtp服务器
10Function sendmail(str1,str2,str3,str4,str5,str6,str7)
11set minimail = Server.CreateObject("JMAIL.Message")
12minimail.silent = False
13minimail.logging = True
14minimail.Charset = "UTF-8"
15minimail.ContentType = "text/html"
16minimail.AddRecipient str1
17minimail.From = str2
18minimail.MailServerUserName = str3
19minimail.MailServerPassword = str4
20minimail.Subject = str5
21minimail.Body = "<div style=""font-family:Verdana,Microsoft YaHei,Arial,Helvetica,sans-serif; float:left; overflow:hidden; border:1px solid #ccc; border-radius:5px; margin-top:12px;""><div style=""border-top:4px solid #efe301; padding:26px 30px 30px;""><p style=""font-size:16px; color:#696969; margin:0; font-weight:bold; padding:0 0 22px;"">"&str6&"</p></div></div>"
22minimail.Priority = 3
23minimail.Send(str7)
24minimail.Close()
25set minimail = Nothing
26End Function
27call sendmail(str1,str2,str3,str4,str5,str6,str7)
28%>

版权说明:本站原创文章,由万象互联SEO优化发表.
本文地址:https://www.hulian.top/zixun/post/8237.html
在线咨询
  • 在线时间
  • 8:00-21:00