<%
 'Dimension variables
 Dim objCDOSYSConÂ
Â
 'Create the e-mail server object
 Set objCDOSYSMail = Server.CreateObject("CDO.Message")
 Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
Â
 'Out going SMTP serverÂ
 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost" Â
 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 Â
 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 Â
 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 Â
 objCDOSYSCon.Fields.UpdateÂ
Â
 'Update the CDOSYS Configuration
 Set objCDOSYSMail.Configuration = objCDOSYSCon
Â
 objCDOSYSMail.From = "you@yoursite.com" Â
 objCDOSYSMail.To = "someone@theresite.com" Â
 objCDOSYSMail.Subject = "Subject goes here" Â
 objCDOSYSMail.HTMLBody = "html enhanced email message goes here" Â
Â
 objCDOSYSMail.Send Â
Â
 'Close the server mail objectÂ
 Set objCDOSYSMail = Nothing
 Set objCDOSYSCon = Nothing
 %>Â
Â
- 1971 Users Found This Useful