WEB开发网:Click here to copy the Code to your clipboard (Only for IE Users)'Declare VariablesDim CDONTSObj, Me
赞助商链接
中资源
>> 最新文章
>> 赞助商
>> 热门文章
WEB开发网文章阅读

CDONTS发电子邮件[代码]

作者:未知 文章来源:WEB开发者 更新时间:2007-12-19 0:33:01
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 = "info@scriptmate.com"

'From Address
CDONTSObj.From = "you@yoursite.com"

'CC Email Addresses seperated by a comma
CDONTSObj.cc = "support@scriptmate.com,amit@millioncolors.com"

'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

技术交流 永无止境
百度搜索中共有相关主题
[阅读:次] [返回上一页] [打 印]
  • 相关文章
  • 本类热门