I have to build an application that will be a custom mail client. To simplify the first version of the application, I decided to use the Gmail API so that I could get a quick and convenient way to manage mail messages in full.
I began to study the documentation and the forum, and came across a large number of topics on the Gmail API from you. It looks like you have already successfully passed this path with the Gmail API. Can you give a brief instruction on what needs to be done to start working with gmail?
Seems right to me, recalling back the steps I went through, although mine was a personal project and I haven’t actually completed it, as I got busy with client work and still have not gone back to it.
The settings on the Google side were executed correctly. Therefore, the post above can be used as a guide if you have a similar task.
For correct operation, there was not enough additional configuration on the Wappler side. Since when using a service account to connect to the Gmail API, it is necessary for the service account to act on behalf of a specific user, you must specify this when setting up the JWT token. Therefore, in step 8, you must specify the gmail user on whose behalf you plan to make api calls in the Subject field. Like so:
Hey! Could you build your site successfully? I want to use Gmail API (my company uses workspace) to send mails to my clients notifications and replace my Sendgrid subscription.
Google’s documentation seems quite difficult to implement with wappler, I cant find any simple REST solution to send basic mails.