Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

EmailStartPOP3Session Does not work with GMail (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>