PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → TLS 1.2 issue with Office 365 and Outlook
TLS 1.2 issue with Office 365 and Outlook
Débuté par Attlebax, 06 jan. 2022 10:32 - 3 réponses
Membre enregistré
33 messages
Popularité : +2 (2 votes)
Posté le 06 janvier 2022 - 10:32
I have come up against the problem of sending emails using SMTP and smtp.office365.com

My app was written in Windev 21 and has been working faultlessly for several years without modification. Now a percentage of emails sent out from it are being rejected when using SMTP and the Office 365 server. It is where the server believes they have been sent under TLS 1.0 or TLS 1.1 and is warning to update the client to TLS 1.2 by Microsoft.

The problem is that when I look at the source code of the sent emails, they are all sent under TLS 1.2 which is the Windows default.

I can alter the smtp settings to another provider, such as Gmail, and they work normally and without error.

I know that if you use the Business Edition of Office 365 then you cam alter a setting in Exchange and it will then work again.

Does anyone hae a solution?

--
Regards,

Norman
Membre enregistré
54 messages
Popularité : +2 (2 votes)
Posté le 11 janvier 2022 - 11:04
Hi Norman,
you can try to put

EmailConfigure(emailParameterMode, 1)


before starting smtp email session.

Hope this helps
Andrea
Posté le 25 janvier 2022 - 17:27
Merci, cela m'a aidé sur la version 23 de windev.

cordialement.

Eric
Posté le 28 janvier 2022 - 14:23
I tried the solution and the this solution fixed the problem.