PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → EmailStartPOP3Session Does not work with GMail
EmailStartPOP3Session Does not work with GMail
Started by willy hermans, Feb., 20 2018 3:41 PM - 3 replies
Posted on February, 20 2018 - 3:41 PM
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
Posted on February, 23 2018 - 8:38 AM
Nobody ?
Posted on February, 23 2018 - 10:35 AM
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…
Posted on February, 23 2018 - 10:43 AM
Thanks,

Seems to work only with WinDev22.

Willy Hermans