Adding Gmail integration to your Bubble app can be complex. Apart from the OAuth process, for email sending capabilities, Google mail requires the btoa (string to base64) conversion and it can get complex. Running this in the standard Bubble API Connector will not work.
With Pathfix, itis now possible to integrate and enable message sending capabilities from your Bubble app using the Bubble API Connector.
Pathfix will manage the following:
This documentation will show setup guide in Bubble and Pathfix.
Note: You will need to have your app registered in Google Cloud and have the app approved for this to work.
Before you proceed, make sure you have configured your app in Google and get your ClientID and ClientSecret for Google Mail. Here is the general documentation for Google Integrating with Google
Copy your Google ClientID and ClientSecret and head over to your Pathfix account:
There are 2 steps to get the Bubble setup done:
Pathfix has a plugin that connects with your account and renders the auth connect button for your providers.
Go to the Design page of Bubble and look for Pathfix Connector under Visual Element
To make the API call to send email from your Bubble app, you will need to use the Bubble API Connector Plugin.
The API call for Google Mail will be slightly different from the standard API call made with Pathfix. There is a x-pre-process header that will need to be included to enable the btoa conversion. Here is the sample API call structure (body):
Here is the implementation in Bubble API Connector:
This will enable the functionality that will allow you to send emails from your Bubble app.
Having trouble? Reach out to us at firstname.lastname@example.org and we would be happy to help you.