FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour gmail : Less Secure App will stop May, 30 2022 *Fixed*
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
gmail : Less Secure App will stop May, 30 2022 *Fixed*
Posted: Thu Mar 10, 2022 04:28 AM
Dear All,

I've used Gmail account to send mail from my program for many years but Google show the message below in Gmail account setup. It means, we have to find the way to send email with Google "security standards". How do we solve this issue?
Less secure apps & your Google Account
To help keep your account secure, starting May 30, 2022, ​​Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.

Please note this deadline does not apply to Google Workspace or Google Cloud Identity customers. The enforcement date for these customers will be announced on the Workspace blog at a later date.

For more information, please continue reading.

Special Note on Apple Device Sign-Ins. Users who have not recently signed into their Google Account using only username and password will be able to only make new sign in attempts using the Google account type starting from February 28, 2022. Existing users may continue to sign into their Google Account using their username and password until May 30, 2022.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: gmail: Less Secure App Access will no longer on May, 30 2022
Posted: Thu Mar 10, 2022 11:23 AM
maybe in the future, test please:

https://mail.yandex.com/

Configuration, use the google traductor, please;

https://fiodevida.com/como-acessar-uma-conta-yandex-mail-em-programas-de-e-mail-usando-imap/

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: gmail: Less Secure App Access will no longer on May, 30 2022
Posted: Tue Mar 15, 2022 03:54 AM
Dear Karinha,

Thank you for an idea. I try http://www.mailjet.com. It works fine but free with condition 200/day, 6,000/month and gmail.com will receive to Promotion mailbox.

I still love gmail, if we can still use after May 30, 2022.
karinha wrote:maybe in the future, test please:

https://mail.yandex.com/

Configuration, use the google traductor, please;

https://fiodevida.com/como-acessar-uma-conta-yandex-mail-em-programas-de-e-mail-usando-imap/

Regards, saludos.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Sat Mar 19, 2022 09:26 AM

Hi,
Is it possible to use the same code with Hotmail / Outloo ?

Some simple ?

Thanks

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Sat Mar 19, 2022 02:35 PM
Dear Jack,

Sorry Jack, Hotmail is the same as Google. I try mailjet.com, it works fine without changing the program but register is a bit more gmail.
Jack wrote:Hi,
Is it possible to use the same code with Hotmail / Outloo ?

Some simple ?

Thanks
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Sat Mar 19, 2022 06:23 PM

I use imap with Thunderbird to read my mails on Gmail. Some time ago I received a warning about the end of the support of "less secure" apps. I disabled the less secure apps on Gmail and changed the protocol to OAuth 2. It worked flawlessly to receive the mails. As I don't use Gmail SMTP I don't know if it works to send mails but I guess it should once your application has been authenticated. It maybe worth a try.

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Mon Mar 21, 2022 03:15 AM
Dear ADutheil,

The way out is OAuth2 for Gmail. How can I use OAuth2 protocol? Can you show me the sample please?

Thanks in advance,
ADutheil wrote:I use imap with Thunderbird to read my mails on Gmail. Some time ago I received a warning about the end of the support of "less secure" apps. I disabled the less secure apps on Gmail and changed the protocol to OAuth 2. It worked flawlessly to receive the mails. As I don't use Gmail SMTP I don't know if it works to send mails but I guess it should once your application has been authenticated. It maybe worth a try.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Mon Mar 21, 2022 03:14 PM

Sorry I can't help with that, as I said I use it with Thunderbird not Harbour. At the moment I have no spare time to dig a solution.

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Mon Mar 21, 2022 04:20 PM
Dear ADutheil,

No problem, Thanks for an idea.
ADutheil wrote:Sorry I can't help with that, as I said I use it with Thunderbird not Harbour. At the moment I have no spare time to dig a solution.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Tue Apr 12, 2022 04:38 PM

Dear Dutchman, you were able to develop OAuth2 for sending mails?. Thank you

Regards
Horacio

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Wed Apr 13, 2022 03:57 AM
Not yet. I gonna move to other choice (mailjet.com).
horacio wrote:Dear Dutchman, you were able to develop OAuth2 for sending mails?. Thank you

Regards
Horacio
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Fri Apr 29, 2022 06:42 AM

Dear Dutch,
did you find a solution or more information about gmail smtp for less secure apps?

Regards, Detlef

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Fri Apr 29, 2022 07:59 AM
Dear Detlef,

I move to mailjet.com. It can send almost the same as smtp.gmail.com, the limitation is 200/day = 6,000/month. I try and work well.
Detlef wrote:Dear Dutch,
did you find a solution or more information about gmail smtp for less secure apps?

Regards, Detlef
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Fri Apr 29, 2022 08:09 AM

Thank you, Dutch.
Unfortunately my client wants to stay at gmail.com to send invoices to her customers.
I' ll try to convince her to change to a service like mailjet.com as you did.

Have a nice weekend.
Regards,
Detlef

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Fri Apr 29, 2022 09:14 AM
Dear Detlef,

If the customer still need to use, I think. They just buy Google Workspace "Business Starter" 6US$/month.
Please note this deadline does not apply to Google Workspace or Google Cloud Identity customers. The enforcement date for these customers will be announced on the Workspace blog at a later date.


Detlef wrote:Thank you, Dutch.
Unfortunately my client wants to stay at gmail.com to send invoices to her customers.
I' ll try to convince her to change to a service like mailjet.com as you did.

Have a nice weekend.
Regards,
Detlef
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)