LeoLionHeart
Programmer
I am using the following code in an ActiveX Script
Error source: CDO.Message.1
Error Description: The transport failed to connect to the server.
I've done a search for CDO on the server and there are no dlls.
Is there any other ways to perform this task when I have a mail client on the server.
Code:
Set oMail = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
iConf.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 2
iConf.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = "....."
iConf.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")[/URL] = 10
iConf.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25
iConf.Fields.Update
Set oMail.Configuration = iConf
oMail.To = "....@......."
oMail.From = ".......@...."
oMail.Subject = "Subject"
oMail.TextBody = "Body"
oMail.Send
Set iConf = Nothing
Set Flds = Nothing
Main = DTSTaskExecResult_Success
Error source: CDO.Message.1
Error Description: The transport failed to connect to the server.
I've done a search for CDO on the server and there are no dlls.
Is there any other ways to perform this task when I have a mail client on the server.