PHPackages                             iqual/iq\_content\_publishing\_mautic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. iqual/iq\_content\_publishing\_mautic

ActiveDrupal-module[Mail &amp; Notifications](/categories/mail)

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.

058—0%PHP

Since Mar 13Pushed 2mo agoCompare

[ Source](https://github.com/iqual-ch/iq_content_publishing_mautic)[ Packagist](https://packagist.org/packages/iqual/iq_content_publishing_mautic)[ RSS](/packages/iqual-iq-content-publishing-mautic/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Content Publishing: Mautic
==========================

[](#content-publishing-mautic)

Provides Mautic email integration for the [Content Publishing](https://www.drupal.org/project/iq_content_publishing) framework. This module enables creating and sending Mautic email campaigns from Drupal node content, leveraging AI-generated newsletter content.

Features
--------

[](#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](https://www.drupal.org/project/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
------------

[](#requirements)

- Drupal 11
- [Content Publishing (iq\_content\_publishing)](https://www.drupal.org/project/iq_content_publishing) ^1.0
- [Mautic API (mautic\_api)](https://www.drupal.org/project/mautic_api) ^2.0
- a Mautic instance with API Key set up.

Installation
------------

[](#installation)

Install via Composer:

```
composer require iqual/iq_content_publishing_mautic
```

Enable the module:

```
drush en iq_content_publishing_mautic
```

Configuration
-------------

[](#configuration)

### 1. Configure Mautic API Connection

[](#1-configure-mautic-api-connection)

Before using this module, you must configure a Mautic API connection:

1. Navigate to **Administration » Configuration » Web services » Mautic API** (`/admin/config/services/mautic/api`)
2. Add a new Mautic API connection with your Mautic instance URL and API credentials

### 2. Create a Publishing Platform Configuration

[](#2-create-a-publishing-platform-configuration)

1. Navigate to **Administration » Configuration » Content Publishing » Platforms** (`/admin/config/content-publishing/platforms`)
2. Add a new platform configuration
3. Select **Mautic** as the platform type

### 3. Platform Credentials

[](#3-platform-credentials)

- **Mautic API Connection**: Select the configured Mautic API connection

### 4. Platform Settings

[](#4-platform-settings)

SettingDescription**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)

[](#5-template-configuration-optional)

To use an existing Mautic email as a design template:

1. Enter the **Template email ID** in the "Email layout template" section
2. The template HTML will be loaded and can be edited
3. Place a `{ai:*}` token where a AI-generated content should be inserted
4. Available tokens include: `{ai:title}`, `{ai:main_title}`, `{ai:subtitle}`, `{ai:summary}`, `{ai:cta_text}`, `{ai:cta_url}`

Output Schema
-------------

[](#output-schema)

The AI generates the following fields for each email:

FieldDescription`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 clientsUsage
-----

[](#usage)

1. Navigate to a node you want to publish
2. Use the Content Publishing interface to select your Mautic platform configuration
3. Generate AI content based on the node
4. Review and edit the generated newsletter content
5. Publish to create/send the email in Mautic

Permissions
-----------

[](#permissions)

This module uses the `administer content publishing` permission from the base Content Publishing module.

Maintainers
-----------

[](#maintainers)

- [iqual GmbH](https://www.drupal.org/iqual)

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance58

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/43082de1b2e2b2b2d48b7ff7dbc7c60ff1d0a015123d4062ac0b49ea0b3b725f?d=identicon)[iqual](/maintainers/iqual)

---

Top Contributors

[![youpixxl](https://avatars.githubusercontent.com/u/3398689?v=4)](https://github.com/youpixxl "youpixxl (24 commits)")

### Embed Badge

![Health badge](/badges/iqual-iq-content-publishing-mautic/health.svg)

```
[![Health](https://phpackages.com/badges/iqual-iq-content-publishing-mautic/health.svg)](https://phpackages.com/packages/iqual-iq-content-publishing-mautic)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
