FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour tGmail class
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
tGmail class
Posted: Wed May 28, 2025 12:28 AM

I do not use gmail nor do I recommend it to my clients. However, some insist on using it. All was find until the new "security" changes, and I know that is why the tGmail class was created.

I setup a gmail account, and I got the ID and secret ID. I plugged the testgmail code into my existing application for testing. Connecting to Google is annoying, but I got past all of that. Then I tried sending an email to one of my accounts ( modifying the sample code ) and got the following:

    msgStop( "Failed to send email. You may not have authorized the required permissions..." )

What are some of the things I should be checking. I'm building with Visual Studio, community, latest edition and the build has no errors.

Ultimately what I need to do is pretty simple. However as I see the Google instructions for the API it seems to make it more difficult. Here is what I want to accomplish:

1) My client ( and application ) creates an email.

2) I want to have them click on the button and send the email.

3) I want the client to have their own user ID and secret passwords. It appears they have to use my developer ID and secret id with their account.

4) Do they really need to start a connection every time, or can we bypass this to occur automatically ?

I've searched the forum but it appears, at least in the English forum, this is not recently discussed.

Thanks.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: tGmail class
Posted: Wed May 28, 2025 06:13 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion