Thanks for all your help. Unfortunately, even after downloading an updated copy of the cdo.dll and registering as described in the readme file, I still get an error at the following line:
Set objMessage = CreateObject("CDO.Message")
The error is number 429, "ActiveX component can't create...