I have a C++ sofware using cdosys.dll to send mails.
This sofware works fine on Window XP but fails on the API "Send" on Windows Vista.
IMessage *PSmsg = NULL;
HRESULT Hres = CoCreateInstance(CLSID_Message, NULL, CLSCTX_INPROC_SERVER,
IID_IMessage, reinterpret_cast<void**>(&PSmsg));
.../...
Hres = PSmsg->Send();
if (FAILED (Hres)) {
AfxMessageBox (_T(
"Error !"));
return false;
}
Smtp Service is running
WinMail may send and receive mails.
What should I do ?