Re: CDO Configuration Not Found

Author: Ted Roche

Posted: 2013-01-19 at 12:56:23

On Sat, Jan 19, 2013 at 12:36 PM, John Weller <john@johnweller.co.uk> wrote:

> I have a couple of apps which use CDO to send emails. They work perfectly

> on one machine but not on the other, I get the error message Class

> Definition CDO.Configuration not found. I have to say I am not really

> conversant with CDO, I copied an excellent script from an internet page so

> am at a loss as to where to look. Any suggestions gratefully received <g>

>

>

I'm not sure my suggestions will be gratefully received. :)

Don't do that. CDO ("Collaborative Data Objects" are a COM/ActiveX wrapper

around MAPI, which in turn is a Microsoft-proprietary wrapper around SMTP,

a well-established, well-tested standard for email sending, a Simple Mail

Transfer Protocol. Every time MS decides they don't like the way something

works, they change their interfaces, breaking your software. SMTP, on the

other hand, Just Works (tm). There are a few gotchas with sending mail,

depending on whether the receiving email server requires SSL,

AUTHentication or other handshake protocol, but they can all be tested and

debugged. MAPI, not so much.

This isn't just theoretical, or an "I Hate Microsoft" screed. Several

times, I've had MS ship "updates" to their software that broke their MAPI

implementation, requiring workarounds or rewrites. To the great unhappiness

of my clients. Since then, I've used SMTP, with Blat or West-Wind's Client

Tools, with dozens of customers across the country, for well over a decade

and a half.

So, when you say, "It breaks when I do that," I'm forced to reply, "Don't

do that."

MAPI Bad, SMTP good.

Take a look at http://fox.wikis.com/wc.dll?Wiki~AutomatedEmail~Wiki as a

good starting point.

--

Ted Roche

Ted Roche & Associates, LLC

http://www.tedroche.com

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CACW6n4teHMqvG=HR=j1+wBmdd_F00=KcMY0Ap0f+K34rycxoCw@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2013 Ted Roche