PHPackages                             acquia/mc-cs-plugin-sparkpost - 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. acquia/mc-cs-plugin-sparkpost

ActiveMautic-plugin[Mail &amp; Notifications](/categories/mail)

acquia/mc-cs-plugin-sparkpost
=============================

Sparkpost Mailer Plugin for Mautic

7.x-dev(6mo ago)3641[1 PRs](https://github.com/acquia/mc-cs-plugin-sparkpost/pulls)GPL-3.0-or-laterPHPPHP ~8.2

Since Oct 15Pushed 6mo agoCompare

[ Source](https://github.com/acquia/mc-cs-plugin-sparkpost)[ Packagist](https://packagist.org/packages/acquia/mc-cs-plugin-sparkpost)[ RSS](/packages/acquia-mc-cs-plugin-sparkpost/feed)WikiDiscussions 7.x Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Mautic Sparkpost Plugin
=======================

[](#mautic-sparkpost-plugin)

This plugin enable Mautic 5 to run Sparkpost as an email transport. Features:

- API transport. This transport can send up to 2000 emails per API request which makes it very fast compared to SMTP.
- Bounce webhook handling. This plugin will unsubscribe contacts in Mautic based on the hard bounces while Sparkpost will take care of the soft bounce retrieals.

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

[](#installation)

There are several ways how to install this plugin. Here are the options from best to worst.

### Via Composer

[](#via-composer)

This is the best option for Mautic instances that were installed via Composer (recommended way to install Mautic)

Steps:

1. `composer install acquia/mc-cs-plugin-sparkpost`
2. `bin/console mautic:plugins:install`

### Via Git

[](#via-git)

This option is useful for development or testing of this plugin as you'll be able to checkout different branches of this repository.

Steps:

1. `cd plugins`
2. `git clone git@github.com:acquia/mc-cs-plugin-sparkpost.git SparkpostBundle`
3. `cd ..`
4. `bin/console mautic:plugins:install`

### Via SFTP

[](#via-sftp)

You should reconsider using this method as the other two above are way better, but this is also possible.

Steps:

1. [Download this plugin](https://github.com/acquia/mc-cs-plugin-sparkpost/archive/refs/heads/main.zip)
2. Rename the folder `mc-cs-plugin-sparkpost-main` to `SparkpostBundle`
3. Upload this folder to the `plugins` directory of your Mautic files.
4. `bin/console mautic:plugins:install`

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

[](#configuration)

After the plugin is installed go to the Mautic's global configuration, the Email settings and configure the DSN.

### Mautic Mailer DSN Scheme

[](#mautic-mailer-dsn-scheme)

`mautic+sparkpost+api`

#### Mautic Mailer DSN Example

[](#mautic-mailer-dsn-example)

`'mailer_dsn' => 'mautic+sparkpost+api://:@default?region=',`

- api\_key: Get Sparkpost API key from
- options:
    - region: `us` (SparkPost ) OR `eu` (SparkPost EU )

[![sparkpost-email-dsn-example](Assets/img/sparkpost-email-dsn-example.png)](Assets/img/sparkpost-email-dsn-example.png)

### Sparkpost tracking

[](#sparkpost-tracking)

The Sparkpost tracking is disabled by default as then the email open and clicks would be tracked twice. Once by Sparkpost, second time by Mautic. This can create some unexpected behavior. The Sparkpost tracking is disabled by default, but you can enable it by adding this row to the Mautic configuration file located at `config/local.php`:

```
'sparkpost_tracking_enabled' => true,
```

Testing
-------

[](#testing)

To run all tests `composer phpunit`

To run unit tests `composer unit`

To run functional tests `composer functional`

### Static analysis tools

[](#static-analysis-tools)

To run fixes by friendsofphp/php-cs-fixer `composer fixcs`

To run phpstan `composer phpstan`

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance71

Regular maintenance activity

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.1% 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.

###  Release Activity

Cadence

Every ~14 days

Total

2

Last Release

191d ago

Major Versions

5.x-dev → 7.x-dev2025-10-29

PHP version history (2 changes)5.x-devPHP &gt;=8.0.0

7.x-devPHP ~8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc05b6476845c43ff95730c82f7383effa98a5ad88a77ebfaa1150a1a8897993?d=identicon)[scor](/maintainers/scor)

![](https://www.gravatar.com/avatar/06d22001d49de5bbc059225fef93f75581c81c0c814ba453d8f070382328dc9e?d=identicon)[escopecz](/maintainers/escopecz)

---

Top Contributors

[![tejasync](https://avatars.githubusercontent.com/u/54406786?v=4)](https://github.com/tejasync "tejasync (54 commits)")[![escopecz](https://avatars.githubusercontent.com/u/1235442?v=4)](https://github.com/escopecz "escopecz (9 commits)")[![aarohiprasad](https://avatars.githubusercontent.com/u/45942361?v=4)](https://github.com/aarohiprasad "aarohiprasad (1 commits)")[![scor](https://avatars.githubusercontent.com/u/77741?v=4)](https://github.com/scor "scor (1 commits)")

---

Tags

pluginMauticintegration

### Embed Badge

![Health badge](/badges/acquia-mc-cs-plugin-sparkpost/health.svg)

```
[![Health](https://phpackages.com/badges/acquia-mc-cs-plugin-sparkpost/health.svg)](https://phpackages.com/packages/acquia-mc-cs-plugin-sparkpost)
```

###  Alternatives

[etailors/mautic-amazon-ses

Amazon SES Mailer Plugin for Mautic

522.0k](/packages/etailors-mautic-amazon-ses)[pabloveintimilla/mautic-amazon-ses

Mautic 5 plugin that provides Amazon SES as an email transport and callback to process bounces

452.4k](/packages/pabloveintimilla-mautic-amazon-ses)[mautic/grapes-js-builder-bundle

GrapesJS Builder with MJML support for Mautic

5684.1k4](/packages/mautic-grapes-js-builder-bundle)

PHPackages © 2026

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