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 = "youraddress@yourdomain.com"
objMessage.To = "any@anydomain.com"
objMessage.TextBody = "This is some sample message text."
objMessage.Send

%>

Add Feedback