talk_positive
2005-08-25 07:42:01 UTC
Hi....
I have been trying desperately to send mail using CDO objects. My platform
is Windows 2000 Server and am having Exchange server 2003 installed. I
am actully desigining workflow using workflow designer...
The code is as follows..........
***************************************************
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") = "msexchange.com"
cdoConfig.fields.update
Set cdoMessage = CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "***@me.com"
cdoMessage.To = "***@me.com"
cdoMessage.Subject = "Sample CDONTS NewMail"
cdoMessage.TextBody = "This is a test for CDONTS message"
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing
***************************************************
Now...if i run this code i get error message...." ActiveX component can't
create object 'CDO.Configuration' "
If i modify the 2nd line to " Set cdoConfig =
Server.CreateObject("CDO.Configuration") ", as someone suggested...then i
get the error..." Server
object expected ".
I searched my machine for " *CDO*.dll " files and found CDOSYS.dll, CDO.dll
& CDOEX.dll.
I also registered them using the "regsrv32" command as was mentioned in one
MSDN article.
Could this be a problem because of the multiple CDO files?
I have made sure that Everone has atleast Read permission for CDO files.
If i remove the Configuration part of the code then i get the error "
ActiveX component can't create object 'CDO.Message' ".
I have made sure that the IIS service is running....( if it happens to have
any relation with CDO )
Can u help me locate and correct the problem? Also, can u suggest another
way to send mail if CDO does not work. Plz exclude Jmail.
If u need any clearifications u can either post a message or mail me at
***@gmail.com.
Thanks in advance....
- Anoop
I have been trying desperately to send mail using CDO objects. My platform
is Windows 2000 Server and am having Exchange server 2003 installed. I
am actully desigining workflow using workflow designer...
The code is as follows..........
***************************************************
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") = "msexchange.com"
cdoConfig.fields.update
Set cdoMessage = CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "***@me.com"
cdoMessage.To = "***@me.com"
cdoMessage.Subject = "Sample CDONTS NewMail"
cdoMessage.TextBody = "This is a test for CDONTS message"
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing
***************************************************
Now...if i run this code i get error message...." ActiveX component can't
create object 'CDO.Configuration' "
If i modify the 2nd line to " Set cdoConfig =
Server.CreateObject("CDO.Configuration") ", as someone suggested...then i
get the error..." Server
object expected ".
I searched my machine for " *CDO*.dll " files and found CDOSYS.dll, CDO.dll
& CDOEX.dll.
I also registered them using the "regsrv32" command as was mentioned in one
MSDN article.
Could this be a problem because of the multiple CDO files?
I have made sure that Everone has atleast Read permission for CDO files.
If i remove the Configuration part of the code then i get the error "
ActiveX component can't create object 'CDO.Message' ".
I have made sure that the IIS service is running....( if it happens to have
any relation with CDO )
Can u help me locate and correct the problem? Also, can u suggest another
way to send mail if CDO does not work. Plz exclude Jmail.
If u need any clearifications u can either post a message or mail me at
***@gmail.com.
Thanks in advance....
- Anoop