CDO MAPI versions and files

CDO MAPI versions and files

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: CDO MAPI versions and files

Postby damianodec » Wed Jun 14, 2017 6: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 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: CDO MAPI versions and files

Postby James Bott » Wed Jun 14, 2017 3:03 pm

Damiano,

May I ask what are you using now?

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: CDO MAPI versions and files

Postby damianodec » Thu Jun 15, 2017 1:17 pm

hi James,
Code: Select all  Expand view  RUN
  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 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: CDO MAPI versions and files

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: CDO MAPI versions and files

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: CDO MAPI versions and files

Postby damianodec » Mon Jun 19, 2017 1: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 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 49 guests