PHPackages                             nyatmeat/mandrill-swiftmailer - 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. nyatmeat/mandrill-swiftmailer

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

nyatmeat/mandrill-swiftmailer
=============================

A SwiftMailer transport implementation for Mandrill

2.2.0(7y ago)08GPL-2.0+PHPPHP &gt;=7.0

Since May 27Pushed 6y agoCompare

[ Source](https://github.com/nyatMeat/MandrillSwiftMailer)[ Packagist](https://packagist.org/packages/nyatmeat/mandrill-swiftmailer)[ Docs](https://github.com/AccordGroup/MandrillSwiftMailer)[ RSS](/packages/nyatmeat-mandrill-swiftmailer/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (12)Used By (0)

Accord\\MandrillSwiftMailer
===========================

[](#accordmandrillswiftmailer)

[![Build Status](https://camo.githubusercontent.com/143c9418e6bbd6f848e3b4d3e7083de1b604aa7bc1b276b4ba57560f641a906a/68747470733a2f2f7472617669732d63692e6f72672f4163636f726447726f75702f4d616e6472696c6c53776966744d61696c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AccordGroup/MandrillSwiftMailer)

A SwiftMailer transport implementation for Mandrill

If you'd like us to implement more [Mandrill-specific features](https://mandrillapp.com/api/docs/messages.JSON.html), let us know by [submitting an issue](https://github.com/AccordGroup/MandrillSwiftMailer/issues/new).

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

[](#installation)

Require the package with composer

```
composer require nyatmeat/mandrill-swiftmailer

```

Usage Example
-------------

[](#usage-example)

```
$transport = new MandrillTransport($dispatcher);
$transport->setApiKey('ABCDEFG12345');
$transport->setAsync(true); # Optional
$transport->send($message);

```

Using Mandrill-specific Features
--------------------------------

[](#using-mandrill-specific-features)

### Asynchronous Mode

[](#asynchronous-mode)

Enable a background sending mode that is optimized for bulk sending

```
$transport->setAsync(true);

```

### Auto Text

[](#auto-text)

Automatically generate a text part for messages that are not given text

```
$message->getHeaders()->addTextHeader('X-MC-Autotext', true);

```

### Google Analytics tracking

[](#google-analytics-tracking)

Mandrill supports automatic Google Analytics tracking for your links. [docs](https://mandrill.zendesk.com/hc/en-us/articles/205582577-About-Google-Analytics-Tracking)

```
$message->getHeaders()->addTextHeader('X-MC-GoogleAnalytics', 'example.com,www.example.com');
// optional defaults to from address
$message->getHeaders()->addTextHeader('X-MC-GoogleAnalyticsCampaign', 'campaign');

```

### Tags

[](#tags)

An array of string to tag the message with

```
$message->getHeaders()->addTextHeader('X-MC-Tags', 'foo, bar');

```

### Inline CSS

[](#inline-css)

Automatically inline all CSS styles provided in the message HTML - only for HTML documents less than 256KB in size

```
$message->getHeaders()->addTextHeader('X-MC-InlineCSS', true);

```

### List Unsubscribe

[](#list-unsubscribe)

Mandrill automatically adds a List-Unsubscribe header to all emails that include a Mandrill-generated unsubscribe link. If recipients use an email program that supports the List-Unsubscribe header (like Hotmail, AOL, or Yahoo), they can use the option in their email program to unsubscribe.

```
$message->getHeaders()->addTextHeader('List-Unsubscribe', '');

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 56.8% 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 ~147 days

Recently: every ~189 days

Total

11

Last Release

2532d ago

Major Versions

1.3.0 → 2.0.02017-06-02

PHP version history (2 changes)1.0.0PHP &gt;=5.4

2.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c1546bef77dcc1cd0fadfc28a95221c1f1deaf0d133d5b4b126cd088c49540f?d=identicon)[nyatMeat](/maintainers/nyatMeat)

---

Top Contributors

[![Kyoushu](https://avatars.githubusercontent.com/u/535916?v=4)](https://github.com/Kyoushu "Kyoushu (25 commits)")[![Remiii](https://avatars.githubusercontent.com/u/659383?v=4)](https://github.com/Remiii "Remiii (6 commits)")[![jrattue](https://avatars.githubusercontent.com/u/5196521?v=4)](https://github.com/jrattue "jrattue (4 commits)")[![nyatMeat](https://avatars.githubusercontent.com/u/26892345?v=4)](https://github.com/nyatMeat "nyatMeat (3 commits)")[![TrashF](https://avatars.githubusercontent.com/u/3194440?v=4)](https://github.com/TrashF "TrashF (3 commits)")[![danstefancu](https://avatars.githubusercontent.com/u/1780596?v=4)](https://github.com/danstefancu "danstefancu (2 commits)")[![sergehardy](https://avatars.githubusercontent.com/u/990737?v=4)](https://github.com/sergehardy "sergehardy (1 commits)")

---

Tags

mandrillswiftmailer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nyatmeat-mandrill-swiftmailer/health.svg)

```
[![Health](https://phpackages.com/badges/nyatmeat-mandrill-swiftmailer/health.svg)](https://phpackages.com/packages/nyatmeat-mandrill-swiftmailer)
```

###  Alternatives

[cspoo/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

1031.1M](/packages/cspoo-swiftmailer-mailgun-bundle)[slot/mandrill-bundle

Symfony Mandrill Bundle

671.5M1](/packages/slot-mandrill-bundle)[mailjet/mailjet-swiftmailer

A SwiftMailer transport implementation for Mailjet

261.2M9](/packages/mailjet-mailjet-swiftmailer)[aimeos/ai-swiftmailer

SwiftMailer adapter for Aimeos web shops and e-commerce solutions

20168.3k5](/packages/aimeos-ai-swiftmailer)[yuan1994/tp-mailer

A powerful and beautiful php mailer for All of ThinkPHP and Other PHP Frameworks based SwiftMailer

812.0k1](/packages/yuan1994-tp-mailer)[sairiz/mandrill

Mandrill Official API Wrapper for Laravel 4

1246.3k](/packages/sairiz-mandrill)

PHPackages © 2026

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