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
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Sun May 08, 2022 04:29 PM
Dear Detlef,

I got the new solution for smtp.gmail.com now.

1. 2 Step Verification (2SV)
2. App Password
2.1 Generate password with
Select app: "Mail", Select device: "Windows Computer"
2.2 Get 16 digits password.
2.3 Use this password instead of gmail's password.

done.

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)
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
Re: gmail : Less Secure App will stop May, 30 2022 *Fixed*
Posted: Sun May 08, 2022 10:12 PM

Uups! I didn't see your new post, Dutch. :oops:
Many thanks for it.
I'll give it a try.

Regards,
Detlef

Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: gmail : Less Secure App will stop May, 30 2022 *Fixed*
Posted: Wed May 11, 2022 08:44 AM

Hi,
I try it and it works as expected.

Thanks for the feeback

Philippe

Posts: 1279
Joined: Mon Feb 06, 2006 04:28 PM
Re: gmail : Less Secure App will stop May, 30 2022 *Fixed*
Posted: Tue May 24, 2022 01:07 PM

Muchas gracias por tan buen aporte.

thank you very much for such a good contribution!!

Saludos/Regards,

José Murugosa

"Los errores en programación, siempre están entre la silla, el teclado y la IA!!"
Posts: 30
Joined: Sun Apr 24, 2011 12:50 AM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Thu Jun 02, 2022 02:09 PM
Hello dutch

Have you any example in harbour to implement your solution?

Thank you in advance

dutch wrote:Dear Detlef,

I got the new solution for smtp.gmail.com now.

1. 2 Step Verification (2SV)
2. App Password
2.1 Generate password with
Select app: "Mail", Select device: "Windows Computer"
2.2 Get 16 digits password.
2.3 Use this password instead of gmail's password.

done.
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: send email gmail : Less Secure App will stop May, 30 2022
Posted: Fri Jun 03, 2022 04:09 PM
Hi hidroxid,

Have you ever send email via gmail account? If so, just change password to "App Password". That's it.
Code (fw): Select all Collapse
         :Item( "http://schemas.microsoft.com/cdo/configuration/smtpserver" ):Value                 := cSmtp // "smtp.gmail.com"
         :Item( "http://schemas.microsoft.com/cdo/configuration/smtpserverport" ):Value         := nPort // iif(lSSL,465,25)  // 465 SSL
         :Item( "http://schemas.microsoft.com/cdo/configuration/sendusing" ):Value              := 2   // Remote SMTP = 2, local = 1
         :Item( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" ):Value       := iif(lAuthen,.T.,.F.) // .T.
         :Item( "http://schemas.microsoft.com/cdo/configuration/smtpusessl" ):Value                 := lSSL // .T.
         :Item( "http://schemas.microsoft.com/cdo/configuration/savesentitems" ):Value          := lSave
         :Item( "http://schemas.microsoft.com/cdo/configuration/sendusername" ):Value           := cSender  
         :Item( "http://schemas.microsoft.com/cdo/configuration/sendpassword" ):Value           := cPass // use App Password instead of gmail password
         :Item( "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"):Value := 30
         :Update()

hidroxid wrote:Hello dutch

Have you any example in harbour to implement your solution?

Thank you in advance

dutch wrote:Dear Detlef,

I got the new solution for smtp.gmail.com now.

1. 2 Step Verification (2SV)
2. App Password
2.1 Generate password with
Select app: "Mail", Select device: "Windows Computer"
2.2 Get 16 digits password.
2.3 Use this password instead of gmail's password.

done.
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)

Continue the discussion