lettermint/lettermint-magento2

Lettermint Email Integration for Magento 2

0.1.2 2025-06-25 07:12 UTC

This package is auto-updated.

Last update: 2025-06-25 07:13:18 UTC


README

Latest Version on Packagist Total Downloads

Integrate Lettermint email service with your Magento 2 store for reliable transactional and marketing email delivery.

Requirements

  • Magento 2.3.0 or higher
  • PHP 8.1 or higher
  • Composer

Installation

Install the module via Composer:

composer require lettermint/lettermint-magento2
php bin/magento module:enable Lettermint_Email
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

Configuration

  1. Navigate to Stores → Configuration → Lettermint → Configuration
  2. Enable the module
  3. Enter your Lettermint API token
  4. Configure sender information and route IDs
  5. Save configuration

Configuration Options

  • API Token: Your Lettermint service API token (encrypted storage)
  • Transactional Route: Route ID for transactional emails (default: outgoing)
  • Newsletter Route: Route ID for newsletter/marketing emails (default: broadcast)
  • Sender Configuration: Default sender name and email address

Features

  • Transactional Emails: Order confirmations, password resets, etc. → Configurable route (default: outgoing)
  • Newsletter Emails: Marketing campaigns, newsletters → Configurable route (default: broadcast)

Email Flow

Transactional Emails

Magento Email System → TransportPlugin → Lettermint API (outgoing route)

Newsletter Emails

Magento Newsletter → newsletter_send_after event → NewsletterSendObserver → Lettermint API (broadcast route)

Security

  • API tokens are encrypted in Magento's configuration storage
  • Input validation and sanitization
  • Secure API communication via HTTPS
  • No sensitive data logged in plain text

License

The MIT License (MIT). Please see License File for more information.

Credits