PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → TLS 1.2 issue with Office 365 and Outlook
TLS 1.2 issue with Office 365 and Outlook
Iniciado por Attlebax, jan., 06 2022 10:32 AM - 3 respostas
Membro registado
33 mensagems
Popularité : +2 (2 votes)
Publicado em janeiro, 06 2022 - 10:32 AM
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
Membro registado
54 mensagems
Popularité : +2 (2 votes)
Publicado em janeiro, 11 2022 - 11:04 AM
Hi Norman,
you can try to put

EmailConfigure(emailParameterMode, 1)


before starting smtp email session.

Hope this helps
Andrea
Publicado em janeiro, 25 2022 - 5:27 PM
Merci, cela m'a aidé sur la version 23 de windev.

cordialement.

Eric
Publicado em janeiro, 28 2022 - 2:23 PM
I tried the solution and the this solution fixed the problem.