gmail : Less Secure App will stop May, 30 2022 *Fixed*

User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: send email gmail : Less Secure App will stop May, 30 2022

Post by dutch »

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 19.01 / 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)
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

Re: gmail : Less Secure App will stop May, 30 2022 *Fixed*

Post by Detlef »

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

Regards,
Detlef
Jack
Posts: 289
Joined: Wed Jul 11, 2007 11:06 am

Re: gmail : Less Secure App will stop May, 30 2022 *Fixed*

Post by Jack »

Hi,
I try it and it works as expected.

Thanks for the feeback

Philippe
User avatar
jose_murugosa
Posts: 1185
Joined: Mon Feb 06, 2006 4:28 pm
Location: Uruguay
Contact:

Re: gmail : Less Secure App will stop May, 30 2022 *Fixed*

Post by jose_murugosa »

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 y el teclado y la IA!!"
hidroxid
Posts: 30
Joined: Sun Apr 24, 2011 12:50 am

Re: send email gmail : Less Secure App will stop May, 30 2022

Post by hidroxid »

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.
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: send email gmail : Less Secure App will stop May, 30 2022

Post by dutch »

Hi hidroxid,

Have you ever send email via gmail account? If so, just change password to "App Password". That's it.

Code: Select all | Expand

         :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 19.01 / 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)
Post Reply