[Gambas-user] SmtpClient Vs GMail

T Lee Davidson t.lee.davidson at gmail.com
Wed Jan 31 18:59:30 CET 2018


You will likely have to set your Gmail account to allow less secure applications. See:
https://support.google.com/a/answer/6260879
https://security.stackexchange.com/questions/66025/what-are-the-dangers-of-allowing-less-secure-apps-to-access-my-google-account

Try setting SmtpClient.Debug = True so you can see the exchange with the SMTP server as it happens.

I am unsure what you mean by, 'Momentarily, they tamp "my problem" using SendMail of the Desktop class.' But, if you mean that
sending mail through the Desktop class works, that's probably because Gmail considers your default email client to not be "less
secure."


-- 
Lee


On 01/31/2018 05:37 AM, Franco wrote:
> Hi everyone, I encountered a problem with GMail using SmtpClient of the gb.net.smtp class, probably due to the authentication
> requested by Google (OAuth2).
> in fact if I try to send an e-mail to the GMail server, it is refused on time.
> How can I solve the problem?
> I ask you why alone I am not able.
> Momentarily, they tamp "my problem" using SendMail of the Desktop class.
> Use Gambas 3.10 on Linux Mint 18.3
> Excuse me for my bad English thank you for your attention
> 
> vigiot


More information about the User mailing list