Email automation on flutterflow without window pop up.

Best Practices

Email automation on flutterflow without window pop up.

Flutterflow offers an option to send an email, via send email action. This action triggers a pop up to redirect you to login to your email service provider, ie Gmail, Microsoft or whichever you use.

You may however want to automate sending of email on certain actions within your app which would make it impossible to access the pop up at all times if you have users in your app.

A client asked me to automate sending emails within flutterflow mobile app.


I decided to create a cloud function for this and call it as an API.
This now is allowing me not only to acoid the annoying emailing pop ip window for authentication but to also design the look of the emaiis ie colors, font, links images etc


The issues I faced mostly when implementing this was navigating the avoidance of authentication pop up trigger and givingbthe mini app enough permissions to send emails on behalf of the client.

One of the workaround was having a refresh token saved in my Environment secrets and a helper function to regenerate a new one when the existing one expires.