Script Sample - How do I send a message using CDO?

Legacy ASP.NET Web Hosting Starting at $7.95 

This is a basic test script that uses CDO (and the web servers local SMTP service). Place the following code into an ASP file and change the email information accordingly:


Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.Sender = ""
objMessage.To = ""
objMessage.TextBody = "This is some sample message text."


Add Feedback