[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pop3 Gambas & Gmail.
[Thread Prev] | [Thread Next]
- Subject: Re: Pop3 Gambas & Gmail.
- From: System64 Development <64xcode@xxxxxxxxx>
- Date: Fri, 25 Oct 2024 09:16:50 +0200
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
ok, I managed to connect. For this (in gmail) you need to enable 2FA. Follow this tutorial: https://opensource.com/article/21/7/gmail-linux-terminal But it is recommended NOT to enable app password for a personal account. This code bellow works now: Public Sub testMail(sType As String) $Pop.Debug = True $Pop.port = 995 $Pop.Encrypt = Net.SSL $Pop.Host = "pop.gmail.com" $Pop.User = $User $Pop.Password = $Pswd Try $Pop.Open If $Pop.Status = Net.Connected Then Print Subst(("You have &1 messages"), $Pop.Count) Try $Pop.Close Endif If Error Then Print Error.Text End Sub
Pop3 Gambas & Gmail. | System64 Development <64xcode@xxxxxxxxx> |