Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post Reply
User avatar
mauri.menabue
Posts: 165
Joined: Thu Apr 17, 2008 2:38 pm

Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post by mauri.menabue »

Good morning everyone
I need help to be able to send emails from one of my FiveWin 32 bit applications
through the use of one or more gmail SMTP servers with recent oAuth2 authentication.
On the English forum Antonio replies, however, the code provided is pseudo code provided by deepseek and not
I have the experience needed to turn it into production-usable code.
Thanks to everyone Maurizio Menabue
User avatar
Lailton
Posts: 181
Joined: Fri Jul 20, 2012 1:49 am
Location: Brazil
Has thanked: 2 times
Been thanked: 12 times
Contact:

Re: Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post by Lailton »

Hi Maurizio,

We will provide support for the oAuth2 on the next version FWH
with samples to send e-mail using GMail/Outlook(Office365).
Regards,
Lailton Fernando Mariano
User avatar
mauri.menabue
Posts: 165
Joined: Thu Apr 17, 2008 2:38 pm

Re: Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post by mauri.menabue »

I wainting until the next release came :D
TIA
FiveWiDi
Posts: 1266
Joined: Mon Oct 10, 2005 2:38 pm
Has thanked: 4 times
Been thanked: 10 times

Re: Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post by FiveWiDi »

Lailton wrote: Tue Feb 11, 2025 4:30 am Hi Maurizio,

We will provide support for the oAuth2 on the next version FWH
with samples to send e-mail using GMail/Outlook(Office365).
Outlook 2010 too?
Un Saludo
Carlos G.

FiveWin 25.01 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 10
User avatar
Lailton
Posts: 181
Joined: Fri Jul 20, 2012 1:49 am
Location: Brazil
Has thanked: 2 times
Been thanked: 12 times
Contact:

Re: Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post by Lailton »

Yes, I think that this method works for any service microsoft ( Outlook, Office364, Live, hotmail etc )
Soon I will share some screen here. :D
Regards,
Lailton Fernando Mariano
Jack
Posts: 291
Joined: Wed Jul 11, 2007 11:06 am

Re: Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post by Jack »

Hi,
Any sample about this ?

Thanks,

Philippe
User avatar
Antonio Linares
Site Admin
Posts: 42715
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 93 times
Been thanked: 103 times
Contact:

Re: Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post by Antonio Linares »

Dear Jack,

There is a complete example included in FWH 25.01 samples\gmail folder
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7232
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 16 times

Re: Send e-mail (CDO) server SMTP GMAIL with oAuth2

Post by Silvio.Falconi »

mauri.menabue wrote: Sun Feb 09, 2025 2:16 pm Good morning everyone
I need help to be able to send emails from one of my FiveWin 32 bit applications
through the use of one or more gmail SMTP servers with recent oAuth2 authentication.
On the English forum Antonio replies, however, the code provided is pseudo code provided by deepseek and not
I have the experience needed to turn it into production-usable code.
Thanks to everyone Maurizio Menabue
do you tried my classes ?
viewtopic.php?p=277951#p277951
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply