iqual/iq_content_publishing_mautic
Composer 安装命令:
composer require iqual/iq_content_publishing_mautic
包简介
Provides Mautic email integration for the Content Publishing framework. Enables creating and sending Mautic emails from Drupal node content using AI-generated newsletter content.
README 文档
README
Provides Mautic email integration for the Content Publishing framework. This module enables creating and sending Mautic email campaigns from Drupal node content, leveraging AI-generated newsletter content.
Features
- AI-Powered Newsletter Generation: Automatically transforms Drupal node content into professional email newsletters with compelling subject lines, headers, and call-to-action elements.
- Mautic API Integration: Seamless connection to your Mautic instance via the Mautic API module.
- Template Support: Use existing Mautic emails as design templates with
{ai_content}token placement for content injection. - Standalone Mode: Automatically generates clean, responsive HTML email documents when no template is configured.
- Segment Targeting: Send emails to specific Mautic segments.
- Flexible Publishing: Create emails as drafts in Mautic or send them immediately upon publishing.
Requirements
- Drupal 11
- Content Publishing (iq_content_publishing) ^1.0
- Mautic API (mautic_api) ^2.0
- a Mautic instance with API Key set up.
Installation
Install via Composer:
composer require iqual/iq_content_publishing_mautic
Enable the module:
drush en iq_content_publishing_mautic
Configuration
1. Configure Mautic API Connection
Before using this module, you must configure a Mautic API connection:
- Navigate to Administration » Configuration » Web services » Mautic API (
/admin/config/services/mautic/api) - Add a new Mautic API connection with your Mautic instance URL and API credentials
2. Create a Publishing Platform Configuration
- Navigate to Administration » Configuration » Content Publishing » Platforms (
/admin/config/content-publishing/platforms) - Add a new platform configuration
- Select Mautic as the platform type
3. Platform Credentials
- Mautic API Connection: Select the configured Mautic API connection
4. Platform Settings
| Setting | Description |
|---|---|
| HTML text format | The text format for the email HTML body editor |
| Segment | The Mautic segment to send emails to |
| From name | Sender name (optional, uses Mautic default if empty) |
| From email address | Sender email address (optional) |
| Reply-to email | Reply-to address (optional) |
| Email type | Choose between "Segment (List) email" or "Template email" |
| Send immediately | When enabled, list emails are sent immediately upon creation |
5. Template Configuration (Optional)
To use an existing Mautic email as a design template:
- Enter the Template email ID in the "Email layout template" section
- The template HTML will be loaded and can be edited
- Place a
{ai:*}token where a AI-generated content should be inserted - Available tokens include:
{ai:title},{ai:main_title},{ai:subtitle},{ai:summary},{ai:cta_text},{ai:cta_url}
Output Schema
The AI generates the following fields for each email:
| Field | Description |
|---|---|
subject |
Email subject line (max 150 characters) |
name |
Internal email name for Mautic dashboard |
title |
Email title (used as main header depending on template) |
main_title |
Main title/header that grabs attention |
subtitle |
Secondary header providing additional context |
summary |
Brief teaser of the email content |
content |
Main content with markdown formatting support |
cta_text |
Call-to-action button text |
cta_url |
Call-to-action URL |
html_body |
The complete HTML body for the email |
plain_text |
Plain-text alternative for non-HTML clients |
Usage
- Navigate to a node you want to publish
- Use the Content Publishing interface to select your Mautic platform configuration
- Generate AI content based on the node
- Review and edit the generated newsletter content
- Publish to create/send the email in Mautic
Permissions
This module uses the administer content publishing permission from the base Content Publishing module.
Maintainers
License
GPL-2.0-or-later
iqual/iq_content_publishing_mautic 适用场景与选型建议
iqual/iq_content_publishing_mautic 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 58 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「newsletter」 「drupal」 「Marketing Automation」 「Mautic」 「content publishing」 「email campaign」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 iqual/iq_content_publishing_mautic 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 iqual/iq_content_publishing_mautic 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 iqual/iq_content_publishing_mautic 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provides an add-on purchasable entity.
Drupal integration module for the Kalastatic prototyping and styleguide tool
Provides a base set of configuration and module dependencies for starting new Drupal projects.
This module extends Drupal Migrate framework.
Historical accounting for contacts
Manage newsletters in Laravel
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 38
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-02-27