文件名称:mail
介绍说明--下载内容均来自于网络,请自行研究使用
用法示意如下:
< @LANGUAGE="VBscr ipt" >
<
option explicit
dim DbConn,connstr,db
Email配置信息
dim SmtpHost, AdminName, AdminEmail, NeedAuth, EmailAccount, EmailPW
SmtpHost="smtp.263.net"
AdminEmail="XXX@263.net"
NeedAuth=true 是否需要认证
EmailAccount="hubdog"
EmailPW="XXXX"
AdminName="管理员"
发送email
function SendMail(Email, Subject, Body)
set MailSender=Server.CreateObject("IndyMail.MailSender")
MailSender.SetBody Body
MailSender.SetFrom """"+AdminName+""" <"+AdminEmail+">"
MailSender.SetHost SmtpHost
MailSender.SetAuth NeedAuth
MailSender.SetSenderName EmailAccount
MailSender.SetSenderPW EmailPW
MailSender.SetSubject Subject
MailSender.SetTo Email
SendMail=MailSender.Send
end function
>-Use to indicate the following: < @ LANGUAGE = " VBscr ipt" > < ' option explicit dim DbConn, connstr, db' Email Configuration Information dim SmtpHost, AdminName, AdminEmail, NeedAuth, EmailAccount, EmailPW SmtpHost = " smtp.263.net" AdminEmail = " XXX@263.net" NeedAuth = true ' the need for certification EmailAccount = " hubdog" EmailPW = " XXXX" AdminName = " administrator" ' Send email function SendMail (Email, Subject, Body) set MailSender = Server.CreateObject (" IndyMail.MailSender" ) MailSender.SetBody Body MailSender.SetFrom " " " " + AdminName+ " " " < " + AdminEmail+ " > " MailSender.SetHost SmtpHost MailSender.SetAuth NeedAuth MailSender.SetSenderName EmailAccount MailSender.SetSenderPW EmailPW MailSender.SetSubject Subject MailSender.SetTo Email SendMail = MailSender.Send end function >
< @LANGUAGE="VBscr ipt" >
<
option explicit
dim DbConn,connstr,db
Email配置信息
dim SmtpHost, AdminName, AdminEmail, NeedAuth, EmailAccount, EmailPW
SmtpHost="smtp.263.net"
AdminEmail="XXX@263.net"
NeedAuth=true 是否需要认证
EmailAccount="hubdog"
EmailPW="XXXX"
AdminName="管理员"
发送email
function SendMail(Email, Subject, Body)
set MailSender=Server.CreateObject("IndyMail.MailSender")
MailSender.SetBody Body
MailSender.SetFrom """"+AdminName+""" <"+AdminEmail+">"
MailSender.SetHost SmtpHost
MailSender.SetAuth NeedAuth
MailSender.SetSenderName EmailAccount
MailSender.SetSenderPW EmailPW
MailSender.SetSubject Subject
MailSender.SetTo Email
SendMail=MailSender.Send
end function
>-Use to indicate the following: < @ LANGUAGE = " VBscr ipt" > < ' option explicit dim DbConn, connstr, db' Email Configuration Information dim SmtpHost, AdminName, AdminEmail, NeedAuth, EmailAccount, EmailPW SmtpHost = " smtp.263.net" AdminEmail = " XXX@263.net" NeedAuth = true ' the need for certification EmailAccount = " hubdog" EmailPW = " XXXX" AdminName = " administrator" ' Send email function SendMail (Email, Subject, Body) set MailSender = Server.CreateObject (" IndyMail.MailSender" ) MailSender.SetBody Body MailSender.SetFrom " " " " + AdminName+ " " " < " + AdminEmail+ " > " MailSender.SetHost SmtpHost MailSender.SetAuth NeedAuth MailSender.SetSenderName EmailAccount MailSender.SetSenderPW EmailPW MailSender.SetSubject Subject MailSender.SetTo Email SendMail = MailSender.Send end function >
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mail\IndyMail.dll
....\IndyMail.cfg
....\IndyMail.dpr
....\CMailSender.pas
....\IndyMail_TLB.pas
....\IndyMail.res
....\IndyMail.tlb
mail
....\IndyMail.cfg
....\IndyMail.dpr
....\CMailSender.pas
....\IndyMail_TLB.pas
....\IndyMail.res
....\IndyMail.tlb