From the course: React: Cloud-Powered Apps with Firebase

Cloud Functions: Email setup

From the course: React: Cloud-Powered Apps with Firebase

Start my 1-month free trial

Cloud Functions: Email setup

- [Instructor] For our first Firebase cloud function, we'll be leveraging the authentication trigger to send the welcome email. Specifically, we will trigger the cloud function when a new user signs up. For this specific example, we will be using Nodemailer, which is a node-based email client. We will also be using a test Gmail account that I have created to send emails. I recommend that you create a Gmail account that you can use for development. Specifically, my email account is thegrid.notifier@gmail.com. Keep in mind that Gmail has an email sending quota. For larger amount of emails, consider switching to something like SendGrid or Mailgun. Another thing to keep in mind is that the Spark plan, which is a free Firebase plan we are currently using only allows you to send requests to Google Services. For non Google related services, you will need to enable billing and your Firebase project. You will also need to do two things for your test Gmail account. You can visit this URL in order to enable less secure app access. Please note that if you have enabled two-step verification, this option will be enabled for you. In that case, you will need to use an app password and you can follow the instructions here. I will go ahead and enable less secure app access. And lastly, you need to visit this link in order to allow access to your Google account.

Contents