PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → EmailStartPOP3Session Does not work with GMail
EmailStartPOP3Session Does not work with GMail
Débuté par willy hermans, 20 fév. 2018 15:41 - 3 réponses
Posté le 20 février 2018 - 15:41
Hello
I use this code from an existing example

// if the user computer is not connected to Internet IF InternetConnected()=False THEN Info("") RETURN END HourGlass() // start a session EmailStartPOP3Session("MyEmailAdress@gmail.com","mypassword","pop.gmail.com",995, optionSSL) IF ErrorOccurred THEN Error(ErrorInfo(errSummary)) RETURN END CHProgressBar=0;CHProgressBar..Visible=True EmailProgressBar(CHProgressBar) // import the emails nNbMail is int nNbMail = nImportMail() CHProgressBar=100;CHProgressBar..Visible=False // close the session EmailCloseSession("MyEmailadress@gmail.com") // switch to the "New message and refresh" tab //IF nNbMail>0 THEN // // MessageFilter(ACCOUNT_Combo, "ñ") //END Info(StringBuild("", nNbMail)) HourGlass(False)
It gives an error
POP3 session: the connection failed. No response from the server.

The settings in the GMail account fore using POP3 are correct.
I have also tried it with Thunderbird. There it works file.

The Google account is a test account added to my person. It is not the only account that is linked with my person. Could this be a problem ?

Anybody an idea.

Thanks
Willy Hermans
Posté le 23 février 2018 - 08:38
Nobody ?
Posté le 23 février 2018 - 10:35
Read this FAQ for GMAIL and SMTP.

I don't know if the problem is the same with POP3 but you can try it to see if it works.

http://faq.windev.com/15563-google_emailstartsmtpsession_smtp_gmail-read.awp…
Posté le 23 février 2018 - 10:43
Thanks,

Seems to work only with WinDev22.

Willy Hermans