Asia/Kolkata
ProjectsSeptember 29, 2024

Building a Transactional Mass Mailer with Rails

Building a Transactional Mass Mailer with Rails

Overview

RubyMassMailer is a Rails API-only application designed to provide a flexible platform for sending mass transactional emails. Whether you're sending order confirmations, password resets, or any other type of email, RubyMassMailer makes it easy to manage and send your emails.

Features

  • API-Only: Lightweight and efficient API-only Rails application.
  • Mass Email Sending: Easily send transactional emails to multiple recipients.
  • Customizable Templates: Use customizable email templates to fit your branding and message.
  • Queue Processing: Background job processing for handling email queues.

Getting Started

Prerequisites

  • Ruby 3.0
  • Rails 6.0 or higher

Installation

  1. Clone the repository:
  1. Install the dependencies:
  1. Create and Fill the Enviroment file .env.example -> .env
  2. Start the server:

Configuration

Within ./config/initializers/mailjet adjust the api v3.1 or v3.0 depending on whether you want to send batch mails or not (check your mailjet config)

Mailer Config

Configure the mailer settings in config/environments/production.rb:

Usage

Sending Emails To send an email, make a POST request to the /api/v1/emails endpoint.
Sample JS script

Recent projects

HomeLab Controller

HomeLab Controller

gnome
Desktop
C
Avatar
Sep 2026 · 1 min read
A Controller software for my homelab written for Gnome based desktop environments.
The Eden Project
Avatar
Nov 2025 · 4 min read
What if music wasn't so inaccessible..
Run over a Deer
Avatar
Nov 2025 · 1 min read
A Silly little game based on the hit movie Over The Hedge