FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CDO MAPI versions and files
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
CDO MAPI versions and files
Posted: Tue Jun 13, 2017 11:45 PM

Everyone,

I notice several of you have been having trouble with CDO lately. I have a client that also in having an issue after they installed a new mail server. I was reading up on CDO today and came across this page which lists all the versions of CDO and has the files available for download (it is a Microsoft site).

https://support.microsoft.com/en-us/hel ... l-versions

You can tell from the number of versions that there are likely to be more than one version of CDO in any LAN, thus there is a fairly good chance that there may issues.

So, the first thing I would do is check the CDO version and OS one the computers having issues. The CDO files may have slightly different names and may be in different locations. Mine is \windows\system32\CDOSYS.DLL (Windows 10). And my CDOSYS.DLL is version 6.6 which is not on the above referenced page (it was last updated in 2011).

I have found that there is a new authentication protocol called NTLM which is used on newer Microsoft mail servers. So if your client is using a MS mail server, one thing to try is setting this value to 2 as shown.

// 0= none, 1= Basic clear text, 2=NTLM
:Item( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" ):Value := 2

One word of warning about sending test emails. This happened to me about a year ago. I was sending lots of test mails when all of a sudden configurations that were working, stopped. I thought I was loosing my mind. Finally, I discovered that I had been marked as a spammer and the mail server was blocking me. I think it was due to the volume of mail and/or I had neglected to make sure the SentFrom and ReplyTo were not exactly the same. Anyway, beware.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: CDO MAPI versions and files
Posted: Wed Jun 14, 2017 06:20 AM

hi James
I leave CDO because in my lan there are a lot of pc that not work with any version or configuration (pc with Win7 and Win10)

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: CDO MAPI versions and files
Posted: Wed Jun 14, 2017 03:03 PM

Damiano,

May I ask what are you using now?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: CDO MAPI versions and files
Posted: Thu Jun 15, 2017 01:17 PM
hi James,
Code (fw): Select all Collapse
   DEFINE MAIL oMail ;
      SUBJECT textSubject ;
      TEXT  MessageText ;
      FROM USER ;
      TO "myCust@dominio.it", ;
                "myBoss@gmail.com" ;   
      RECEIPT

   ACTIVATE MAIL oMail


this is enough now for my app but I hope to arrange my app soon with CDO
FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: CDO MAPI versions and files
Posted: Sun Jun 18, 2017 11:41 PM

For those having CDO problems I just found a very comprehensive list of errors and instructions for dealing with them.

http://www.ctimls.com/Support/KB/Error% ... _Error.htm

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: CDO MAPI versions and files
Posted: Sun Jun 18, 2017 11:45 PM

Damiano,

What you are using now is the basic simple MAPI. This doesn't have any of the advanced features that CDO has so you will have issues with those servers that require the use of those features. You are lucky that the server your client is using doesn't require any of them.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: CDO MAPI versions and files
Posted: Mon Jun 19, 2017 01:26 PM

hi James,
thank you for link and help.
I have to use MAPI because I now have not any others solution.
now I try with your link.

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)

Continue the discussion