>Hi Matt
>I downloaded the email.prg program, and i find it very easy and straightforward to use, therefore extremely useful.
>I am running the SendInternetMail function from my application ( a distributed EXE file ), and i run into a class definition error. Since i know you're using the MSMAPI32 DLL, and not the OCX files ( as specified in your readme ), i guess i should declare something in the beginning of the EMAIL file, or of my app., but i just don't know what.
>Could you help me with this please? Thanks in advance.
>
>Jaime
Hi Jaime,
Well, the lesson I've learned is a moral I preach...never assume.
When I built this procedure file, I was assuming that I was using MSMAPI32, based on what, I'm no longer sure. It turns out, after some thought provoking dialougue with others here, that EMAIL.PRG uses MAPI 1.0. MAPI 1.0, according to my understanding, is loaded with MS Exchange Client and is also available via MS's Software Development Kit. Therefore, if MS Exchange Client is loaded (it is on all the clients I've been using), you never have to worry about file registration (it's magic! duh). So in the words of Homer Simpson....DOH!
So what to do? Well, MSMAPI32 has many simlar controls, but I don't believe that the OCX is instatiated properly using CREATEOBJECT. I believe that some of the controls are not created unless the object is a member of a form. I could be wrong, I've been wrong before.
Soon, within the next 2 weeks, I'll write an update to the readme file, but in the meantime, anyone not using MS Exchange that doesn't wish to purchase SDK, EMAIL.PRG can be modified to perform the same function. Please refer to KB article Q136638....
http://www.microsoft.com/kb/articles/q136/6/38.htmlI apologize for any confusion I've created and I'd appreciate any feedback.
Matt
Matt McDonnell
...building a better mousetrap with moldy cheese...