This project is not covered by Drupal’s security advisory policy.

MailChannels sends your Drupal email, such as order confirmations, password resets, form notifications and account emails, through the MailChannels Email API so it reaches the inbox. Connect with an API key, verify your domain, and every message is tracked: you can see deliveries, bounces and complaints, and bounced addresses are suppressed automatically.

MailChannels has delivered email for web hosting providers for twenty years. If you run a platform where many customers send, each one can have its own sub-account with its own limits, so one sender's problem never affects the rest.

Start free with 100 emails a day, then pay one simple price per send.

Features

  • A core mail backend (MailInterface) you choose on the module's settings page; installing the module does not change how your site sends mail.
  • A Symfony Mailer transport (mailchannels+api://default) for sites using Mailer Plus / Mailer Transport (drupal/symfony_mailer 2.x).
  • Plain-text and HTML mail, Cc and Bcc, Reply-To, custom headers, and file and inline attachments (including Mime Mail and Email Attachment Helper formats).
  • The API key stays in settings.php, out of exported configuration. From, Sender and envelope addresses must be on an allowlist you set there.

Requirements

  • Drupal 11.4 or later, PHP 8.3 or later.
  • A MailChannels account with an Email API key, and a sending domain set up for MailChannels (SPF and Domain Lockdown).

Installation

  1. composer require drupal/mailchannels_email_api
  2. Add the key and your allowed senders to settings.php:
    $settings['mailchannels_api_key'] = getenv('MAILCHANNELS_API_KEY') ?: '';
    $settings['mailchannels_allowed_senders'] = ['noreply@example.com'];
  3. Enable the module, grant Administer MailChannels Email API to the right administrators, and choose the backend at Configuration > System > MailChannels Email API.

Limitations

Messages with more than one Reply-To address, or with envelope recipients that differ from the visible recipients, are rejected before anything is sent. The module does not retry or fall back to SMTP: a failed result can mean acceptance was uncertain, and resending automatically could deliver mail twice.

Support

File issues on GitHub; the MailChannels team supports the module on a best-effort basis. MailChannels customers with a problem in the service itself can contact MailChannels support.

Project information

Releases