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

Re: Pop3 Gambas & Gmail.


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.


Follow-Ups:
Re: Pop3 Gambas & Gmail.System64 Development <64xcode@xxxxxxxxx>
Re: Pop3 Gambas & Gmail.T Lee Davidson <t.lee.davidson@xxxxxxxxx>
References:
Pop3 Gambas & Gmail.System64 Development <64xcode@xxxxxxxxx>
Re: Pop3 Gambas & Gmail.Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>