PC6下载站

分类分类

CDONTS发电子邮件例子

关注+2004-11-07作者:蓝点

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




展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消