当前位置: 首页 > 图文教程 > 网络编程 > ASP > CDONTS发电子邮件例子

ASP
加密處理使密碼更安全
使用InstallShield制作ASP安装程序(1)
使用InstallShield制作ASP安装程序(2)
使用InstallShield制作ASP安装程序(3)
使用InstallShield制作ASP安装程序(4)
使用InstallShield制作ASP安装程序(5)
使用InstallShield制作ASP安装程序(6)
一个通用数据库显示程序
数据库远程控制的ASP实现
词语搭配游戏的制作(ASP)一
词语搭配游戏的制作(ASP)二
词语搭配游戏的制作(ASP)三
在ASP中使用Oracle数据库
在Web界面下如何生成像资源管理器一样的树形目录(版本2.0)
使用ASP建设私人搜索引擎
用EasyMailObject组件处理Exchange邮件源代码(1)
用EasyMailObject组件处理Exchange邮件源代码(2)
用EasyMailObject组件处理Exchange邮件源代码(3)
用EasyMailObject组件处理Exchange邮件源代码(4)
用EasyMailObject组件处理Exchange邮件源代码(5)

ASP 中的 CDONTS发电子邮件例子


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 65 ::
收藏到网摘: n/a

  Click here to copy the Code to your clipboard (Only for IE Users)


'Declare Variables
Dim CDONTSObj, MessageBody

'Create the CDONTS object
Set CDONTSObj = Server.CreateObject("CDONTS.NewMail")

'To Address
CDONTSObj.To = "[email protected]"

'From Address
CDONTSObj.From = "[email protected]"

'CC Email Addresses seperated by a comma
CDONTSObj.cc = "[email protected],[email protected]"

'Your Email Message
MessageBody = "Sending a email using ASP was never so easy ! "

'Subject of the Email Message
CDONTSObj.Subject = "Send a Email"

'Assigning the value of your message to the Object
CDONTSObj.Body = MessageBody

'Send the email
CDONTSObj.Send

'Set the CDONTS object to nothing
Set CDONTSObj = nothing