PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Error connecting to Gmail SMTP from WD
Error connecting to Gmail SMTP from WD
Iniciado por guest, 04,dic. 2017 19:03 - 6 respuestas
Publicado el 04,diciembre 2017 - 19:03
As of yesterday we started getting the following error when trying to connect to gmail SMTP from our windev app.

"A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider"

This happens when using 587/TLS and 465/SSL

We do have "allow access to less secure apps" enabled in our gmail accounts

Does this mean we need to start digital signing our application?

Any ideas?
Publicado el 05,diciembre 2017 - 09:17
Publicado el 05,diciembre 2017 - 17:37
Joris,

adding

EmailConfigure(emailParameterMode, 1)

before "emailstartsession" did the trick.

Many thanks!

Steve
Publicado el 06,diciembre 2017 - 15:58
Quote
steve erts

Joris,





adding





EmailConfigure(emailParameterMode, 1)





before "emailstartsession" did the trick.





Many thanks!





Steve

Hi Steve,

I do not find any function available for EmailConfigure(emailParameterMode, 1)

Could you explain further ?

Regards,

PETER ZHOU
Publicado el 06,diciembre 2017 - 19:45
You need V22 for that...
Publicado el 06,diciembre 2017 - 22:46
I am having the same issue. I am starting to get customers stating that my windev app does not send emails via their gmail account which has been working for years.

I am currently using rev 21. Does upgrading to 22 and adding the code EmailConfigure(emailParameterMode, 1) before EmailStartSMTPSession really work?
Publicado el 20,marzo 2018 - 07:26
It is because Google blocks sign-in attempts from apps which do not use modern security standards (mentioned on their support page). You can however, turn on/off this safety feature by going to the link below:

Go to this link and select Turn On

https://www.google.com/settings/security/lesssecureapps

Moreover google block an ip when you try to send a email since a unusual location, so, you can unblock in the next link

https://support.google.com/accounts/answer/6009563

and clicked in

accounts.google.com/DisplayUnlockCaptcha .

http://net-informations.com/python/net/email.htm