KB Issue
Sometimes, when setting up for CDOSYS, you may set smtpusessl incorrectly. When this happens, your page displays the 'transport failed to connect to the server' error.
Issue Details
When sending mail with CDOSYS, you have to make sure that your SMTP uses SSL, if not, you will experience the following error.

CDO.Message.1 error '80040213'
The transport failed to connect to the server.
/mail.asp, line 24
Recreate Issue[p]In your CDOSYS Mail, you have the following line.
Code Example
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true
You can see where the end is; we have truth.
If your server sends mail over SSL, this is correct; however, if your mail server does not send over SSL, this is incorrect.
Resolve IssueWith the above code, do one of the following scenarios
You should then be able to send your mail.
Full Working Mail Script
Date: June 24, 2026
Using ASP Classic on Windows Server Core, you are no longer able to use the CDOSYS Email. Your best choice is to do as I have done, and move all my Email scripts over to ASP.NET, either VB or C#.
[Classic ASP - CDO.Message]
CFFCS | CarrzSynEdit: | ASP/VBScript

Set myMail = CreateObject("CDO.Message") 
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).

myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.domain.com"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = false 'Use SSL for the connection (True or False)

myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
     
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.

myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication

myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="webmaster@domain.com"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="********"

myMail.Configuration.Fields.Update

email = "name@somedomain.com"
myMail.To = email
myMail.Subject = "KB Email Confirmation"
myMail.From = "support@domain.com (KB)"

myMail.HTMLBody = "This is line one<br />"
myMail.HTMLBody = myMail.HTMLBody &"This is line 2<br />" 
myMail.HTMLBody = myMail.HTMLBody &"<div style=""text-align:center; vertical-align:top""><blockquote style=""color:#999999;""> KB is A %AEComapny Name Here©2000-"&Year(Now())&" Company</blockquote>" 
myMail.Send
response.Write "Mail Sent Successfully!<br />Check your Inbox for: "&email
     
Set myMail = Nothing