CDO components send mail (application of 2003 operating system)

xiaoxiao2021-03-06  36

Originally used in the CDONTS component, since the server used the 2003 system, it was found that the original function was not frank. The page prompt said that it was unsuccessful to create an object. So I checked the help of IIS, helping to clearly write in the 2003 system, and the CDONTS components are deleted, only the CDO component is retained. The CDO component is the parent component of CDONTS. However, many places in the Internet say that an example of sending an email with a CDO component is actually an example of a CDONTS component. Below I am looking for examples of CDO components SET CDOMAIL = Server.createObject ("cdo.message") This is a key, creating a CDO component, not cdonts' cdomail.mailformat = 0 these properties are in cdon, but CDO no 'cdomail.BodyFormat = 0 cdomail.From = mail cdomail.To = "jaa @ aacom"' cdomail.Bcc = "sdfs @ dfsdcom" cdomail.Subject = product ' "request information"' // body content message = "name : "& Name &"
"Message = Message &" Company: "& Company &"
"'Message = Message &" Address: "& address &" <
"' Message = Message &" Postal Code: "& Zip &"
"Message = Message &" Phone: "& Phone &"
"'Message = Message &" Fax: "& Fax &"
"Message = Message &" Request Time: "& Ordertime &"
"Message = Message &" Request Information: "& info &"
"'/// cdomail.htmlbody = message' This is also a key part, and the original body attribute Not the same 'response.write product & "
"' response.write & "
" 'response.end cdomail.send set cdomail = Nothing

转载请注明原文地址:https://www.9cbs.com/read-64319.html

New Post(0)