[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pop3 Gambas & Gmail.


On 10/18/24 10:44, System64 Development wrote:
El 18/10/24 a las 15:04, Benoît Minisini escribió:
Anyway, you can set the Debug property of the Pop3Client to get the dialog with the server on the console.

Public Sub testMail()

   $Pop.Debug = True
   $Pop.Host = "pop.gmail.com"
   $Pop.port = 995
   $Pop.User = $User
   $Pop.Encrypt = Net.SSL
   $Pop.Password = $Pswd

   Try $Pop.Open()
   If $Pop.Status = Net.Connected Then
     Print "Mensajes: " & $Pop.Stat[0]
   Endif

   If Error Then Print Error.Text

End Sub

Output in console:

gb.net.pop3: Connecting to pop.gmail.com
gb.net.pop3: Authenticating...
gb.net.pop3: Sending: USER <USER>@gmail.com
gb.net.pop3: +OK send PASS
gb.net.pop3: Sending: PASS ********
gb.net.pop3: -ERR [AUTH] Username and password not accepted.
gb.net.pop3: Bad password
gb.net.pop3: Aborting...
Cannot authenticate

The password is correct, there are other authentication issue.

"Starting on September 30, 2024, less secure apps, third-party apps, or devices that have you sign in with only your username and password will no longer be supported for Google Workspace accounts. For exact dates, visit Google Workspace Updates. To continue to use a specific app with your Google Account, you’ll need to use a more secure type of access that doesn’t share password data."

https://support.google.com/accounts/answer/6010255?sjid=3467888359354966068-NC


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
Pop3 Gambas & Gmail.System64 Development <64xcode@xxxxxxxxx>
Re: Pop3 Gambas & Gmail.Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Pop3 Gambas & Gmail.System64 Development <64xcode@xxxxxxxxx>