Sample CDOSYS Email Script


Below is a sample script you can copy and paste in order to test CDOSYS functionality:

<% 
Dim MyMail
Set MyMail = CreateObject("CDO.Message")
MyMail.From = "You@YourDomain.com"
MyMail.To = "YouAgain@YourOtherAddress.com"
MyMail.Subject = "Test message using CDOSYS"
MyMail.TextBody ="This is a test email message" & vbcrlf & "sent with CDOSYS"
MyMail.Send
Set MyMail= nothing
Response.Write("Your e-mail has been sent")
%>


Was this content helpful?




© 2014 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER