Send Welcome Mail to new user Using Firebase Cloud Functions

Step 1:

Make a folder and name it welcome-mail, you can name it as you want. Open it in any text editor, in my case I am using vs code. open you terminal (Linux/Mac user) or Command Prompt(Windows user).

Step 2:

Initialize your firebase project using the given command.

Step 3:

This is how your index.js will look. We are using gmail to send mail. Replace

Step 4:

Deploy your cloud function using the following command.

Project Structure

Step 5:

You need to allow less secure apps in your gmail account from here

Less secure apps

--

--

I am a Software Engineer @Walmart and instructor @Udemy, working on Blockchain, and Kubernetes. I have completed CHFA, CKA, CKAD

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aditya Joshi

Aditya Joshi

129 Followers

I am a Software Engineer @Walmart and instructor @Udemy, working on Blockchain, and Kubernetes. I have completed CHFA, CKA, CKAD