PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Sending mails from google account
Sending mails from google account
Started by Issa, Oct., 04 2017 3:15 PM - 2 replies
Registered member
20 messages
Popularité : +1 (1 vote)
Posted on October, 04 2017 - 3:15 PM
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
Posted on October, 04 2017 - 8:15 PM
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
Registered member
20 messages
Popularité : +1 (1 vote)
Posted on October, 05 2017 - 8:14 AM
Thank you Fabrice

It was very helpful

--
Issa Bej