Home > Web Front-end > HTML Tutorial > How does ASP send activation emails after registration? _html/css_WEB-ITnose

How does ASP send activation emails after registration? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:52:01
Original
1238 people have browsed it

<%Sub Sendemail(title,content,email)Set jmail = Server.CreateObject("JMAIL.Message") '建立发送邮件的对象jmail.silent = true '屏蔽例外错误,返回FALSE跟TRUE两值jjmail.logging = true '启用邮件日志jmail.Charset = "GB2312" '邮件的文字编码为国标jmail.ContentType = "text/html" '邮件的格式为HTML格式jmail.ISOEncodeHeaders = false '是否进行ISO编码,默认为True(加上了这一句)jmail.AddRecipient email '邮件收件人的地址jmail.From = "163@163.com" '发件人的E-MAIL地址jmail.MailServerUserName = "163@163.com" '登录邮件服务器所需的用户名jmail.MailServerPassword = "11111" '登录邮件服务器所需的密码jmail.Subject = title '邮件的标题 jmail.Body = content '邮件的内容'jmail.Prority = 1 '邮件的紧急程序,1 为最快,5 为最慢, 3 为默认值jmail.Send("Smtp.163.com") '执行邮件发送(通过邮件服务器地址)jmail.Close() '关闭对象End Sub%>
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template