bloomidea/mautic-plugin-resend-nonopeners

Mautic plugin to resend segment emails to contacts who did not open them, with automatic segment cloning and translation handling.

Maintainers

Package info

github.com/Bloomidea/mautic-plugin-resend-nonopeners

Type:mautic-plugin

pkg:composer/bloomidea/mautic-plugin-resend-nonopeners

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

v1.0.5 2026-04-12 08:51 UTC

This package is auto-updated.

Last update: 2026-04-12 08:55:00 UTC


README

Packagist Version License

A Mautic plugin that adds a one-click "Resend to Non-Openers" action for segment (broadcast) emails.

After a segment email has been sent, this plugin lets you resend it to contacts who did not open it. It automates the manual workflow of cloning the segment with a "not read email" filter, cloning the email (including all its translations), and publishing it for the broadcast cron to send.

Why

Every major email marketing platform (Mailchimp, Brevo, ActiveCampaign) has a one-click resend-to-non-openers feature. In Mautic it previously required a tedious manual workflow. Mailchimp data from 1,300 resend campaigns shows resends add +8.7 percentage points to the original open rate (from a 26.7% average) — it's one of the highest-ROI email actions.

Features

  • One-click resend from the email detail page (Options dropdown → "Resend to Non-Openers")
  • CLI command for automation: bin/console mautic:emails:resend-nonopeners <email-id> [--dry-run]
  • API endpoint: POST /api/resend-nonopeners/{id}
  • Multilingual support — clones parent email and all translation children, filters across all translation IDs
  • Automatic segment creation — new segment combines "member of original audience" + "did not read email" filters
  • Auto-categorization — creates a "Resend Non-Openers" category and assigns it to all cloned emails and segments for easy filtering in lists
  • Auto-cleanup — when the resend email finishes sending (or is manually unpublished), the linked segment is automatically unpublished too
  • Safe by default — each email can only be resent once; a resend cannot be resent again
  • Fully async — the HTTP request returns immediately; segment rebuild and delivery happen in the background via Mautic's standard crons, so it works for segments of any size without timeouts
  • Uses the standard broadcast cron — scales to any list size, respects rate limits

Screenshots

"Resend to Non-Openers" in the Options dropdown (only appears for segment emails with sends)

Dropdown menu showing Resend to Non-Openers button

Confirmation modal

Confirmation modal with email name and notes

Auto-generated segment with membership + non-opener filters

Segment filters showing segment membership and read email excluding

For the full visual walkthrough (8 screenshots), see mautic/mautic#16004.

How it works

  1. You click "Resend to Non-Openers" on a sent segment email
  2. The plugin creates a new segment with two filters:
    • Segment Membership — including any of — [original segment(s)]
    • Read a specific email — excluding any of — [original + all translations]
  3. The plugin clones the email and all its translation children, assigns them to the new segment, and publishes them
  4. Both the segment and the cloned emails are tagged with a "Resend Non-Openers" category (auto-created on first use)
  5. A record of the resend is stored in the email_resends table so the email can't be resent again
  6. The HTTP request returns immediately — everything from here is async via Mautic's standard crons
  7. mautic:segments:update rebuilds the new segment to populate the non-opener contacts
  8. mautic:broadcasts:send picks up the cloned email and sends it to the non-openers
  9. When all non-openers have been sent to, Mautic auto-unpublishes the resend email
  10. The plugin detects the unpublish and automatically unpublishes the linked segment too — no cleanup needed

Requirements

  • Mautic 7.0 or newer
  • PHP 8.2+

Installation

Via Composer (recommended)

The plugin is published on Packagist. If your Mautic installation has a composer.json (source-based install), run:

composer require bloomidea/mautic-plugin-resend-nonopeners
bin/console mautic:plugins:reload
bin/console cache:clear

Composer reads install-directory-name from the plugin's composer.json and installs it to plugins/MauticResendNonOpenersBundle/ automatically.

Manual installation (for runtime Docker images)

The official mautic/mautic:7-apache Docker image is a runtime build without composer.json, so composer require will not work inside it. In that case, clone the plugin directly into the plugins directory and pin a tag for reproducible builds:

cd /path/to/mautic/plugins
git clone --branch v1.0.1 --depth 1 https://github.com/Bloomidea/mautic-plugin-resend-nonopeners.git MauticResendNonOpenersBundle
rm -rf MauticResendNonOpenersBundle/.git
bin/console mautic:plugins:reload
bin/console cache:clear

For Dockerfile usage, add the same commands as a RUN step. To upgrade, bump the tag and rebuild.

The plugin creates an email_resends table automatically from its entity metadata during plugin reload.

Usage

UI

  1. Open a segment email that has been sent to at least one contact
  2. Click the Options dropdown (the chevron next to the Edit button)
  3. Click Resend to Non-Openers
  4. Confirm in the modal
  5. The broadcast cron will send the cloned email to non-openers on its next run

Note on continuous-sending emails: if the original email has "continue sending" enabled, "non-openers" will include very recent recipients. The plugin still allows the resend — the decision of when to trigger it is up to you.

CLI

# Dry run — check if an email is eligible without doing anything
bin/console mautic:emails:resend-nonopeners 42 --dry-run

# Execute the resend
bin/console mautic:emails:resend-nonopeners 42

API

curl -X POST "https://your-mautic.example.com/api/resend-nonopeners/42" \
  -u admin:password

Response:

{
  "success": 1,
  "emailId": 123,
  "segmentIds": [45]
}

Constraints

  • Only segment (broadcast) emails can be resent — not template/campaign emails
  • The original email must have been sent to at least one contact (sentCount > 0). This includes emails with "continue sending" enabled, since those never reach sendingStatus === 'sent' despite having real non-openers to target.
  • Each email can only be resent once
  • A resend email cannot be resent again
  • Triggering from a translation child automatically resolves to the parent
  • Permission check: requires email:emails:editown or email:emails:editother

Technical approach

The plugin is implemented without any modifications to Mautic core:

  • No core entity changes — a plugin-owned EmailResend entity stores the relationship between an original email and its resend, instead of a column on the emails table
  • No template modifications — the UI button is injected via the CoreEvents::VIEW_INJECT_CUSTOM_BUTTONS event
  • Leverages existing Mautic primitives — uses the lead_email_received segment filter (with "excluding any of" operator) and the leadlist membership filter; no custom SQL
  • Standard broadcast pipeline — the cloned email is published and picked up by mautic:broadcasts:send like any other segment email

Related links

License

GPL-3.0-or-later — same license as Mautic core.