Windows 2003 is not registered under the ASP components by mail

  In fact ASP can do a lot of things, but we do not know how to use the.    Asp Microsoft provides a very useful and more off-the-shelf components, and no one knows these components, such as CDO.Message email. 

  What is CDO.Message?    In winnt and sending e-mail use win2k CDONTS.NewMail, CDONTS.NewMail component is required to be registered, it is as simple as running on the server command line regsvr32 Cdonts.dll, in the pop-up dialog box can be determined, the use of CDONTS.NewMail needed services are installed in the iis own smtp.    By windows2003, the system will not incidental Cdonts.dll document, and there cdosys.dll a similar document, of course, in this document are also win2k (requires registration components), but in 2003 under what is good?    The components without manual registration system has been automatically registered.    Now we see how to use the components it. 

<%
  Dim cm 
  Set cm = Server.CreateObject ( "CDO.Message") 
  'Create Object 
  Cm.From = "from@test.com" 
  'Set the sender's mail 
  Cm.To = "to@test.com" 
  'Set the recipient's mailbox 
  Cm.Subject = "I found an online subscription RSS site, after what they do not have to install software." 
  'The theme of the mail 
  'Cm.TextBody = "http://www.gbmad.net/rss/" 
  'Above is to use an ordinary text format email, text only, can not support html, not here 

  Cm.HtmlBody = "Online RSS Feeds Reader is a RSS news reader on the system." & _ 
  "No need to download and install, as long as the registration after you can have the same powerful software and the online subscription RSS RSS news of the system." & _ 
  "Whether you anywhere, as long as you can access, you can read your favorite subscribers." & _ 
  "Go registered Bar: <a href = http://www.gbmad.net/rss/> http://www.gbmad.net/rss/ </ a>" 

  'Construction of the above is your html text, e-mail on this issue than just the text more attractive.    Do not say that you will not bar html 

  'Cm.AddAttachment Server.MapPath ( "test.zip") 
  'If there is a need to send attachments of the above methods used to get additional documents. 

  Cm.Send 
  'Of course, the final implementation is sent 
  Set cm = Nothing 
  'Send immediately after the successful release of Object 

  Response.Write ( "email success.") 
%>

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Tags: , , , ,

Releated Articles


0 Comments to “Windows 2003 is not registered under the ASP components by mail”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.