- 爱易网页
-
ASP教程
- CDONTS发电子邮件例子
日期:2011-01-31 浏览次数:21102 次
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
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。