Internet Services
Language / Idioma
Future Shock Hosting in English Hosting con Future Shock en Espaņol
 

CDO2000


Full reference for CDO2000 can be found searching the Microsoft MSDN website.

Below is the VBscript code required to send a simple email using CDO2000.

<%
Set cdoMessage = Server.CreateObject("CDO.Message")
cdoMessage.To = """toName"" <toEmailAddress>"
cdoMessage.From = """fromName"" <fromEmailAddress>"
cdoMessage.Subject = "Subject here..."
cdoMessage.TextBody = "Message here..."
cdoMessage.Send
Set cdoMessage = Nothing
%>

If you wish to use CDO2000 contants by name (rather than by value), you will need to add the following Type Library reference to the top of your script:

<!--METADATA TYPE="typelib" NAME="CDO for Windows 2000 Type Library" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"-->

Click here to return to the previous page.


 

 

 

 

 
   
Last Modified: 7th February 2007. All content © 2003 Future Shock