Knowledgebase: Windows Hosting > Plesk
How to use CDONTS / CDOSYS ?
Posted by Senthil on 07 November 2005 01:54 PM
|
|
Microsoft discontinued CDONTS. So, we are not providing support to it. We always recommend CDOSYS for Feedback or Contact forms. Tested sample code of CDOSYS compnonent is given below, dim Mailer set Mailer = server.createobject("CDO.Message") Mailer.From = "from@yourdomain.com" Mailer.To = "to@somebody.com" Mailer.TextBody = "Text content" Mailer.Subject = "Mail subject" with Mailer.Configuration .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yourdomain.com" .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 .Fields.Update end with Mailer.Send set Mailer = Nothing NOTE : Please replace the values with exact thing of yours. | |
|
Comments (0)