Send mail originally used CDONTS components to send mail, since the server used 2003 system, found that the original function is not the spirit, the page hint that is the creation of the object is not successful. So I checked with the help of IIS, and helped to make it clear that in the 2003 system, the CDONTS components were removed and only the CDO components were retained. The CDO component is the parent component of the CDONTS. But many of the Web sites that use CDO components to send emails are examples of CDONTS components.
Let me make a list of the CDO components.
Set Cdomail=server. CreateObject ("CDO.") Message ") This is the key to creating the CDO component, not the CDONTS
' Cdomail. MailFormat =0 These attributes are available in CDONTS, but there is nothing in the CDO
' Cdomail. BodyFormat =0
Cdomail. From =mail
Cdomail. To= "Jaa@aacom"
' Cdomail. Bcc= "Sdfs@dfsdcom"
Cdomail. Subject =product ' "Request Information"
'//////////////////////////body content////////////////////////////
Message= "Name:" & name & "<br>"
Message=message & "Company:" & Company & "<br>"
' Message=message & ' Address: "& addr &" <br> "
' Message=message & ' Postal code: ' & Zip & ' <br> '
Message=message & "Phone:" & phone & "<br>"
' Message=message & ' Fax: "& fax &" <br> "
Message=message & "Request time:" & Ordertime & "<br>"
Message=message & "Request information:" & info & "<br>"
'///////////////////////////////////////////////////
Cdomail.htmlbody =message ' This is also the key part, and the original Body property is not the same
' Response. Write Product & "<br>"
' Response. Write & "<br>"
' Response.End
Cdomail. Send
Set cdomail=nothing