GithubHelp home page GithubHelp logo

imasimali / firemail-webhook Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

Webhook-based email notification system for Mailgun events, built with Firebase Functions.

License: MIT License

JavaScript 100.00%
email-status firebase-functions mailgun webhooks

firemail-webhook's Introduction

FireMail-Webhook

FireMail-Webhook is an open-source project designed to send email notifications using Firebase Functions whenever an email sent through Mailgun is delivered, opened, or clicked. It leverages Mailgun's webhook feature to trigger Firebase Functions, which then use Nodemailer to dispatch notifications.

Features

  • Email Delivery Notifications: Get notified when your emails are successfully delivered.
  • Email Interaction Tracking: Receive alerts when recipients open or click on links within your emails.
  • Secure & Scalable: Built on Firebase Functions for secure and scalable email event handling.
  • Customizable Notifications: Easy to customize email notification content for different event types.

Getting Started

Prerequisites

  • A Firebase account and a Firebase project.
  • A Mailgun account with SMTP and webhook configuration.
  • Node.js (version 18 or later recommended).

Setup

  1. Clone the Repository

    git clone https://github.com/imasimali/FireMail-Webhook.git
    cd FireMail-Webhook
  2. Configure Firebase

    • Set up Firebase CLI and login to your Firebase account.
    • Initialize Firebase in your project directory if you haven't already.
  3. Set Environment Variables

    Configure your Mailgun SMTP credentials and Firebase project details as GitHub secrets for secure deployment.

    • SMTP_EMAIL: Your Mailgun SMTP email.
    • SMTP_PASS: Your Mailgun SMTP password.
    • FIREBASE_PROJECT: Your Firebase project ID.
    • FIREBASE_TOKEN: Your Firebase CI token.
  4. Deploy to Firebase

    Push your changes to the main branch to automatically deploy your Firebase functions using GitHub Actions.

Usage

Configure your Mailgun webhook to send events to your Firebase function's endpoint. The function will process these events and send email notifications accordingly.

Contributing

We welcome contributions! Please feel free to fork the repository, make changes, and submit pull requests. You can also open issues for bugs, feature requests, or documentation improvements.

License

This project is open source and available under the MIT License.

firemail-webhook's People

Contributors

imasimali avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.