CDO Emailing. Is the DLL required or does it come with OS?

ions

Access User
Local time
Today, 06:13
Joined
May 23, 2004
Messages
823
Hello,

I use CDO to send emails in my Access application. I use late binding.

Code:
Set objCDOMessage = CreateObject("CDO.Message")
Set objCDOConfig = CreateObject("CDO.Configuration")

I wanted to know if I need to provide a .DLL file with my installation package to ensure this code works on all Windows Operating Systems (XP to Windows 8).

If I do need to provide a .DLL file is it "cdosys.dll"? I have this file on my machine and my CDO code is working. Can I simply include the cdosys.dll file in the same folder as the app or do I need to register it on the users machines?

Thank you
 
Last edited:
If memory serves right, library functions has to be registered in system before using them..
 
Paul,

Thanks for the reply. I read over some books after posting the question and I believe if I include the .DLL file in the same folder as the FE Access will find it.

Thanks
 
Paul,

Thanks for the reply. I read over some books after posting the question and I believe if I include the .DLL file in the same folder as the FE Access will find it.

Thanks

Hi ions,
the CDO library (cdosys.dll) should be in the windows\system32 folder. You do not need to import it. In the Tools>References you will need to check 'Microsoft CDO for Windows 2000 Library'.

Best,
Jiri
 
Thanks Solo. Yes I found the file in windows\system32. I am using Late Binding on the CDO object so I am not referencing the library. I include cdosys.dll in my installation package and place it in the same folder as the FE just in case the user's machine doesn't have it. I believe XP versions that are not PRO do not have cdosys.dll by default.
 

Users who are viewing this thread

Back
Top Bottom