I'd recommend segregating the email sending from your core code altogether.
Create a queueing table with your messages in it and have one machine
responsible for actually passing that along to SMTP.

E

On Tue, Jul 22, 2025 at 2:07 PM Kurt Wendt <[email protected]> wrote:

> Thanks again RK for the follow up. Yes, the emailing handling and more
> stringent authentication has indeed been discussed by Tony our IT guy. I
> looking for OAuth2 related coding for VFP - he actually stumbled upon
> ChilKat - and discussed the potential need of ChilKat with our manager. So,
> it is indeed possible we may go the ChilKat route as a better more solid
> solution - since that CDO code below will most probably break during the
> email server upgrading.
>
> -K
> ________________________________
> From: ProFox <[email protected]> on behalf of Richard Kaye <
> [email protected]>
> Sent: Tuesday, July 22, 2025 3:02 PM
> To: [email protected] <[email protected]>
> Subject: RE: Win11 Deadline & FoxPro Apps!
>
> Sorry, Kurt, I don't use CDO. I do know that besides the OS changes
> impacting you, email handling is rapidly changing as well.
>
> Personally I think w00dy or Christof or any of the rest of the fine folk
> on this list are better sources for VFP expertise than Claude. 😊 Maybe not
> quite as available, though...
>
> --
>
> rk
>
> -----Original Message-----
> From: ProfoxTech <[email protected]> On Behalf Of Kurt Wendt
> Sent: Tuesday, July 22, 2025 1:13 PM
> To: [email protected]
> Subject: Re: Win11 Deadline & FoxPro Apps!
>
> Darn - Oops - trying again...
>
> Well - RK - there definitely is a Win11 relation to the problem. Because,
> same code that ran under Win10 - it fails to run under Win11 - as it seems
> that Win11 broke the VFPWinSock code.
>
> A couple of weeks ago, when this all started - I actually asked Claude for
> help. He gave me a bunch of different options. I tried this option that
> uses CDO - but, the code wasn't working. Today I went back to that code,
> played around with it and change some parameters - and now it's working.
> This is essentially that code:
> * The code from this Test was originally given to me from Claude - then I
> updated some Settings  - KHW - 7/22/25
>
> LOCAL oMessage, oConfig
> oMessage = CREATEOBJECT("CDO.Message")
> oConfig = CREATEOBJECT("CDO.Configuration")
>
> * Configure SMTP settings
> WITH oConfig.Fields
>     .Item("http://schemas.microsoft.com/cdo/configuration/sendusing";) = 2
> && Was... 2
>     .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver";) = "
> mail.pakoinc.com"
>     .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport";)
> = 25 && Was ...587
>     .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";)
> = 1
>     .Item("http://schemas.microsoft.com/cdo/configuration/sendusername";)
> = ""
>     .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword";)
> = ""
>     .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl";) =
> .F.  && Was .T.
>     .Update()
> ENDWITH
>
> * Send the email
> WITH oMessage
>     .Configuration = oConfig
>     .To = "[email protected]"
>     .From = "[email protected]"
>     .Subject = "CDO Test Subject"
>     .TextBody = "CDO Email Test message body"
>     .Send()
> ENDWITH
>
> But, yes - in regards to authentication - when we further upgrade things
> like Email server - things maybe break again. Since, as you said -
> "authentication methods that are more stringent" - and my IT guy also made
> me aware of this. That this code could still break again.
>
> ________________________________________
> From: ProFox <[email protected]> on behalf of Richard Kaye <
> [email protected]>
> Sent: Tuesday, July 22, 2025 1:00 PM
> To: [email protected] <[email protected]>
> Subject: RE: Win11 Deadline & FoxPro Apps!
>
> I think it's clear that your issue is not really W10 vs W11; it's how to
> handle SMTP in the modern world. 😊
>
> Many, if not all, of the email providers are now requiring authentication
> methods that are more stringent then the wild west of open relaying, or
> even basic authentication with creds. This means calling APIs, using
> secrets, etc. All that modern stuff that we have not historically needed.
> And many now require proper SPF, DMARC, & DKIM just to make it more fun.
> --
> rk
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/caawxvumr5qvrugpecjstpxfh8e-ay+z3w3df-2eyxieg7yk...@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.

Reply via email to