最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
用cdonts发送邮件的两个函数
时间:2022-06-30 11:36:47 编辑:袖梨 来源:一聚教程网
用cdonts发送邮件的两个函数,非常好用,快记录下来!
--------------------------------------------------------------------------------
freezwy 于 2001-6-29 11:47:02 加贴在 Joy ASP ←返回版面
<%
sub sendmail(fromwho,towho,subject,body)
dim cdo
set cdo=server.createobject("cdonts.newmail")
cdo.From=fromwho
cdo.To = towho
cdo.Subject =subject
cdo.Body =body
cdo.MailFormat=0
'说明是以MIME发送
cdo.BodyFormat=0
'可以包含html代码
cdo.Importance=0
'邮件的优先级别0-1-2
'[email protected] 抄送
'[email protected]密送
'cdo.AttachFile "" 附件
cdo.Send
Set cdo=Nothing
end sub
sub sendattachmail(fromwho,towho,subject,body,attachfile)
dim cdo
set cdo=server.createobject("cdonts.newmail")
cdo.From=fromwho
cdo.To = towho
cdo.Subject =subject
cdo.Body =body
cdo.MailFormat=0
cdo.BodyFormat=0
cdo.Importance=0
cdo.AttachFile attachfile
cdo.Send
Set cdo=Nothing
end sub
%
--------------------------------------------------------------------------------
freezwy 于 2001-6-29 11:47:02 加贴在 Joy ASP ←返回版面
<%
sub sendmail(fromwho,towho,subject,body)
dim cdo
set cdo=server.createobject("cdonts.newmail")
cdo.From=fromwho
cdo.To = towho
cdo.Subject =subject
cdo.Body =body
cdo.MailFormat=0
'说明是以MIME发送
cdo.BodyFormat=0
'可以包含html代码
cdo.Importance=0
'邮件的优先级别0-1-2
'[email protected] 抄送
'[email protected]密送
'cdo.AttachFile "" 附件
cdo.Send
Set cdo=Nothing
end sub
sub sendattachmail(fromwho,towho,subject,body,attachfile)
dim cdo
set cdo=server.createobject("cdonts.newmail")
cdo.From=fromwho
cdo.To = towho
cdo.Subject =subject
cdo.Body =body
cdo.MailFormat=0
cdo.BodyFormat=0
cdo.Importance=0
cdo.AttachFile attachfile
cdo.Send
Set cdo=Nothing
end sub
%
相关文章
- 幻兽帕鲁饲料箱怎么做 饲料箱制造方法介绍 07-31
- 燕云十六声天泉地位怎么晋升 天泉门派晋升方法 07-31
- 明末渊虚之羽龟纽金宝有什么用 龟纽金宝用途介绍 07-31
- 幻兽帕鲁怎么去掉无用词条 去掉无用词条方法介绍 07-31
- 人渣SCUM未安装EasyAntiCheat启动错误如何解决 解决方法一览 07-31
- 明末渊虚之羽羽族遗骸有什么用 羽族遗骸获取位置介绍 07-31