NO CODE PLUGINS
Google Mail Integration
Google Mail (Gmail) Direct Integration
10min
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 oauth authorisation token management api for the call btoa conversion 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 suggested read link link 2 setup in pathfix 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 identity (make sure you select the right api that you would like to use) copy your google clientid and clientsecret and head over to your pathfix account login to your pathfix account and click on add application add the name of your saas and hit save select google mail from the list of providers you can change the display name and description enter the client id and client secret generated from google and add additional scopes you want to access setup in bubble there are 2 steps to get the bubble setup done oauth setup api call oauth setup pathfix has a plugin that connects with your account and renders the auth connect button for your providers install the pathfix oauth connector https //docs pathfix com/bubble/pathfix oauth connector plugin from the bubble plugin store to active the plugin copy your pathfix public key and x partner key for use in the plugin in public key add your pathfix public key in the x partner key section add your pathfix x partner key pathfix connector under visual element drag and drop the element to any page/section where you want the auth connect button to appear in the properties of the plugin, select all providers configured in my pathfix account if you have multiple providers configured, select list of providers option instead and enter googlemail go to preview and you will now see connect to gmail button api call 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) { "url" "https //gmail googleapis com/gmail/v1/users/me/messages/send", "method" "post", "payload" { "raw" "from <\[replace with from email]>\nto <\[replace with to email]>\nsubject saying hello\n\nthis is a message just to say hello so, hello " }, "headers" { "x pre process" { "process" "btoa", "this" "raw" }, "x pinc response data at" "rows 0 data" } } here is the implementation in bubble api connector key value and development key value is the pathfix private key (to see where you can get the private key, see pathfix keys docid\ published i5bp9dypntquakv2r8mbh ) add the post url as https //labs pathfix com/oauth/method/googlemail/call key name should be public key the value of key can be found at pathfix keys docid\ published i5bp9dypntquakv2r8mbh ) check private check queryst key name should be user id enter your pathfix login email id over here (note ensure that you have tested the connection after configuring your integration in pathfix) uncheck private check queryst (below) while configuring to use the api in a datasource element or a workflow action, ensure that the user id points to the current user's unique id this will enable the functionality that will allow you to send emails from your bubble app having trouble? reach out to us at support\@pathfix com and we would be happy to help you