PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Sending mails from google account
Sending mails from google account
Débuté par Issa, 04 oct. 2017 15:15 - 2 réponses
Membre enregistré
20 messages
Popularité : +1 (1 vote)
Posté le 04 octobre 2017 - 15:15
Hello everybody

I have created on site a function for sending e-mails (from my google account).
Till now I have sent maximum 10 e-mails/day

This is the code
SI EmailOuvreSessionSMTP(sNomUser,sPassExp,sServeurSMTP,587,Faux,emailOptionSécuriséTLS) = Vrai ALORS

SI EmailEnvoieMessage(sNomUser,emailOptionEncodeEntête) = Faux ALORS
Erreur(ErreurInfo())
EmailFermeSession(sNomUser)
RETOUR
FIN
EmailFermeSession(sNomUser)
Info("Votre email a été envoyé")
SINON
Erreur("Impossible d'établir la connexion", ErreurInfo(errMessage), ...
"En cas de Time Out, assurez-vous des paramètres du ""Pare-Feu"" sur le port utilisé (587)")
FIN


it worked till 2 days ago but now the error message is :
A certificate chain processed, but terminated in a root certificate 
which is not trusted by the trust provider


Does anybody know what happened with google?

Thank you for your help

--
Issa Bej
Posté le 04 octobre 2017 - 20:15
Hi Issa,

yes, and pcsoft published a faq about it and how to get rid of it in
windev 22 using emailparameter function, if I remember correctly

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 10/4/2017 à 7:15 AM, Issa a écrit :
Hello everybody

I have created on site a function for sending e-mails (from my google
account). Till now I have sent maximum 10 e-mails/day

This is the code
SI
EmailOuvreSessionSMTP(sNomUser,sPassExp,sServeurSMTP,587,Faux,emailOptionSécuriséTLS)
= Vrai ALORS
    SI EmailEnvoieMessage(sNomUser,emailOptionEncodeEntête) = Faux
ALORS         Erreur(ErreurInfo())
        EmailFermeSession(sNomUser)
        RETOUR
    FIN
    EmailFermeSession(sNomUser)
    Info("Votre email a été envoyé")
SINON
    Erreur("Impossible d'établir la connexion",
ErreurInfo(errMessage),  ...
    "En cas de Time Out, assurez-vous des paramètres du ""Pare-Feu""
sur le port utilisé (587)")
FIN


it worked till 2 days ago but now the error message is :
A certificate chain processed, but terminated in a root certificate
    which is not trusted by the trust provider


Does anybody know what happened with google?

Thank you for your help

--
Issa Bej
Membre enregistré
20 messages
Popularité : +1 (1 vote)
Posté le 05 octobre 2017 - 08:14
Thank you Fabrice

It was very helpful

--
Issa Bej