PHPackages                             atelierspierrot/mime-mailer - 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. atelierspierrot/mime-mailer

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

atelierspierrot/mime-mailer
===========================

A package to send rich MIME emails.

v1.1.0(11y ago)1111Apache-2.0HTMLPHP &gt;=5.3.0

Since Oct 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/atelierspierrot/mime-mailer)[ Packagist](https://packagist.org/packages/atelierspierrot/mime-mailer)[ Docs](http://github.com/atelierspierrot/mime-mailer)[ RSS](/packages/atelierspierrot-mime-mailer/feed)WikiDiscussions dev Synced yesterday

READMEChangelogDependencies (5)Versions (6)Used By (0)

MIME Mailer
===========

[](#mime-mailer)

[![demonstation](https://camo.githubusercontent.com/860c4e475d63ab920a51c3ea609b93e1a512859be6af45734514ca88d6fbc879/687474703a2f2f696d672e6174656c696572732d70696572726f742d7374617469632e66722f7365652d7468652d64656d6f2e737667)](http://sites.ateliers-pierrot.fr/mime-mailer/)[![documentation](https://camo.githubusercontent.com/be7adb4ffdc11ba4b480fe936a1e0d23e2c6b3a70ffea72fa4004a30e74e1bae/687474703a2f2f696d672e6174656c696572732d70696572726f742d7374617469632e66722f726561642d7468652d646f632e737667)](http://docs.ateliers-pierrot.fr/mime-mailer/)A PHP package to send rich MIME emails.

Usage
-----

[](#usage)

To create a Mailer instance, just write:

```
$mailer = \MimeMailer\Mailer::getInstance();
```

You can define a set of user options writing:

```
$mailer = \MimeMailer\Mailer::getInstance(array(
    'options name' => 'option value',
    //...
));
```

The `Mailer` instance acts like a global container to build messages and send them. It handles a set of messages as an array. From this container, you can access to:

```
$mailer->getMessage() // the current message object
$mailer->getTransporter() // the current transporter object
$mailer->getSpooler() // the current spooler object
```

To work on current message, you can write:

```
$mailer->getMessage() // the message will be created if none was defined
    ->setTo(...)
    ->setSubject(...)
    ->setText(...)
    //...
    ;
```

Many methods are defined to build a message, please refer to the PHP class itself to learn more.

All "persons" fields can be defined as the followings:

```
 ( 'my@email.address' )
 ( 'my@email.address', 'my name' )
 ( array( 'my name'=>'my@email.address' ) )
 ( array( 'my name'=>'my@email.address', 'another name'=>'another@email.address' ) )
 ( array( 'my name'=>'my@email.address', 'another@email.address' ) )
```

Finally, to send built messages, just write:

```
$mailer->send()
```

Some logs are accessibles from the container with:

```
$mailer->getErrors()
$mailer->getInfos()
```

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

[](#installation)

For a complete information about how to install this package and load its namespace, please have a look at [our *USAGE* documentation](http://github.com/atelierspierrot/atelierspierrot/blob/master/USAGE.md).

If you are a [Composer](http://getcomposer.org/) user, just add the package to the requirements of your project's `composer.json` manifest file:

```
"atelierspierrot/mime-mailer": "@stable"
```

You can use a specific release or the latest release of a major version using the appropriate [version constraint](http://getcomposer.org/doc/01-basic-usage.md#package-versions).

Please note that this package depends on the externals [PHP Patterns](http://github.com/atelierspierrot/patterns), [PHP Library](http://github.com/atelierspierrot/library) and [PHP Validators](http://github.com/atelierspierrot/validators).

Author &amp; License
--------------------

[](#author--license)

> MIME Mailer

>

> Copyright (c) 2013-2016 Pierre Cassat and contributors

> Licensed under the Apache Version 2.0 license.

>

> ---

> Les Ateliers Pierrot - Paris, France

>  -

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~168 days

Total

4

Last Release

4087d ago

### Community

Maintainers

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

---

Top Contributors

[![e-picas](https://avatars.githubusercontent.com/u/1021199?v=4)](https://github.com/e-picas "e-picas (60 commits)")

---

Tags

mimeemailing

### Embed Badge

![Health badge](/badges/atelierspierrot-mime-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/atelierspierrot-mime-mailer/health.svg)](https://phpackages.com/packages/atelierspierrot-mime-mailer)
```

###  Alternatives

[symfony/mime

Allows manipulating MIME messages

2.8k668.8M911](/packages/symfony-mime)[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[php-mime-mail-parser/php-mime-mail-parser

A fully tested email parser for PHP 8.0+ (mailparse extension wrapper).

9979.6M27](/packages/php-mime-mail-parser-php-mime-mail-parser)[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M246](/packages/nette-mail)[zbateson/stream-decorators

PHP psr7 stream decorators for mime message part streams

4748.6M6](/packages/zbateson-stream-decorators)[dflydev/apache-mime-types

Apache MIME Types

701.9M35](/packages/dflydev-apache-mime-types)

PHPackages © 2026

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