G Suite E-mail as SMTP for Firebase Auth

omert
patron-labs
Published in
3 min readMay 8, 2020

You are developing an authentication system with Firebase but hey ! what’s that ? email verification mails go to spam folder.

Your new users will not be happy for this. You can use 3rd party e-mail provider but it might bring another cost. If you are developing an MVP or prototype, such a cost counts.

Don’t worry, we can overcome this trouble by adding SMTP service to Firebase Authentication Settings.

Btw, here is my twitter (twitter/omertaban_en), I share well crafted stories from my product development journeys. Let’s connect and engage.

Sorry for distraction 😅

Yes ! I am talking about this page fellows.

I hope you are using G Suite in your company or organization.

G Suite account’s price is 6$ per user/month. (It’s extremely cheap compared to smtp services). It gives us 2000 e-mail per day which is fair enough for a startup.

Let’s start by enabling 2-step verification and app passwords for G-suite account first. This G-suite account should be the one you wanna use for Firebase authentication’s e-mails.

Go to this link and make sure that 2 step verification is enabled under “Signing to Google” section. Then go to “App Passwords” which located just below to the 2-step verification option under same section.

Select “Other (Custom name)” for app then it will ask for which device you want to use this password, you can write whatever you would like, I prefer to label it as “Firebase”.

Then we get our app password, we should note it in safe place. We will use it in next step!

Then, we should allow less secure apps to sign in with out app password. Otherwise Google will not allow Firebase to signing this account.

Just go to this link and check the radio button “Allow users to manage their access to less secure apps”

One more step remaining to switch back to Firebase page which is unlocking the captcha.

Just navigate to this link and proceed by tapping on “Continue”.

All ready !

We can configure Firebase authentication SMTP settings with g-suite mail address.

In password section, you should use the app password we have created before.

Congrats, you should have verification mails user’s inbox instead of spam folder.

Claps are appreciated, if you would like to connect and engage, you know the address ;)

Best Regards,
omert
twitter/omertaban_en

--

--

omert
patron-labs

I write about my journeys in programming and entrepreneurship.