๐ฃ๐ผ๐๐ฒ๐ฟ ๐ฌ๐ผ๐๐ฟ ๐๐ผ๐ป๐๐ฎ๐ฐ๐ ๐๐ผ๐ฟ๐บ ๐ช๐ถ๐๐ต ๐๐ถ๐ฟ๐ฒ๐ฏ๐ฎ๐๐ฒ
Building a backend for a simple contact form is too much work. You only need an email when a customer contacts you. Firebase and Cloud Functions solve this.
The setup:
- Create a Firebase project.
- Set up a Firestore database.
- Set security rules for your data.
- Connect your frontend with the SDK.
- Use a custom hook to send data.
The automation:
- Switch to the Blaze plan.
- Install Firebase CLI tools.
- Write a function with Nodemailer.
- Create a Gmail App Password.
- Deploy your function.
Your website now sends emails automatically.
Source: https://dev.to/temikara/power-your-contact-form-with-firebase-and-cloud-functions-3p02