Firebase makes it easy to build and scale applications. From authentication and databases to serverless functions, it provides everything developers need to ship products quickly.
However, when it comes to sending transactional emails such as verification emails, welcome messages, password resets, notifications, and newsletters, developers often need a reliable email delivery solution.
That's where Keplars comes in.
With the Keplars Firebase Cloud Functions integration, you can deploy a production-ready email endpoint inside your Firebase project and start sending emails in minutes.
Why Use Keplars with Firebase?
The integration provides:
- Template-based emails
- HTML and plain-text emails
- Scheduled email delivery
- Instant email delivery (0-5 seconds)
- TypeScript support
- Node.js 18 support
- Firebase-native deployment
Whether you're building a SaaS platform, e-commerce store, mobile application, or internal business tool, Keplars helps you send emails directly from your Firebase environment.
Quick Setup
1. Clone the Example Repository
2. Configure Your Firebase Project
Update your `.firebaserc` file:
Or connect your project using:
3. Add Your Keplars API Key
Navigate to the functions directory:
Add your API key:
4. Install Dependencies
5. Start Firebase Emulator
Your email endpoint will be available at:
Sending Your First Email
Once your Cloud Function is running, you can send emails using a simple HTTP request.
Template-Based Email
This approach is ideal for:
- Welcome emails
- OTP verification
- Password resets
- Transactional notifications
Plain Text Emails
HTML Emails
Need complete control over email design?
This is perfect for:
- Marketing campaigns
- Product announcements
- Rich onboarding emails
Scheduled Emails
Keplars also supports scheduled delivery with timezone awareness.
Common use cases include:
- Newsletters
- Product launches
- Reminder emails
- Time-sensitive campaigns
Calling the Function from JavaScript
Once deployed, sending emails from your frontend or backend is straightforward.
React Integration Example
For React applications, you can trigger emails like this:
Deploying to Production
Before deploying, store your API key securely:
Deploy your Cloud Functions:
Your endpoint will be available at:
Security Best Practices
For production deployments, we recommend the following.
Restrict CORS
Add Firebase Authentication
Protect Secrets
Never commit API keys to Git. Use Firebase Secrets Manager:
Email Delivery Response
A successful API response returns the following delivery information.
This makes it easy to track email activity inside your application.
Final Thoughts
Firebase simplifies backend infrastructure. Keplars simplifies email infrastructure.
Together, they provide a powerful solution for developers who need reliable transactional and scheduled email delivery without maintaining complex mail servers.
If you're already using Firebase Cloud Functions, integrating Keplars takes only a few minutes and gives your application access to scalable, production-ready email delivery.
