WEB开发网
开发学院WEB开发ASP CDONTS发电子邮件例子 阅读

CDONTS发电子邮件例子

 2001-02-06 10:56:11 来源:WEB开发网   
核心提示:Click here to copy the Code to your clipboard (Only for IE Users)'Declare VariablesDim CDONTSObj, MessageBody'Create the CDONTS objectSet CDONTSObj = Se
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

Tags:CDONTS 电子邮件 例子

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接