定制 bloomidea/mautic-plugin-resend-nonopeners 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bloomidea/mautic-plugin-resend-nonopeners

Composer 安装命令:

composer require 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.

README 文档

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.

bloomidea/mautic-plugin-resend-nonopeners 适用场景与选型建议

bloomidea/mautic-plugin-resend-nonopeners 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 04 月 11 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「plugin」 「email」 「Mautic」 「resend」 「non-openers」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 bloomidea/mautic-plugin-resend-nonopeners 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 bloomidea/mautic-plugin-resend-nonopeners 我们能提供哪些服务?
定制开发 / 二次开发

基于 bloomidea/mautic-plugin-resend-nonopeners 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 36
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-04-11