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

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

qwant50/mailer
==============

Jazz framework mailer component

3.0.0(10y ago)025MITPHP

Since Jan 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/qwant50/mailer)[ Packagist](https://packagist.org/packages/qwant50/mailer)[ RSS](/packages/qwant50-mailer/feed)WikiDiscussions master Synced yesterday

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

Jazz framework mailer component README
======================================

[](#jazz-framework-mailer-component-readme)

**Jazz framework mailer component**

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

[](#installation)

The preferred way to install this ITCourses framework mailer component is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require "qwant50/mailer"
```

or add

```
"qwant50/mailer": "~3.0.*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

\####1. You MUST to init `$config` array from the config file `path/to/config/mailer.php`

```
return [
    'transport' => 'SmtpTransport',
    'host' => 'smtp.domain.com',
    'port' => 587,
    'smtp_username' => 'username',
    'smtp_password' => 'password',
    'mailFrom' => 'transportMailAddress@domain.com',
    'debug' => 5,  //  0 - disable debug messages
];
```

\####2. Set some message headers. "RECOMMENDED"

```
use Qwant\Mailer;
use Qwant\Message;

$message = new Message();

$message->addHeader('Error-to', 'example@domain.com')
        ->addHeader('From', 'example@domain.com')
        ->addHeader('To', 'example@domain.com')
        ->addHeader('Subject', 'Text field.');
```

\####3. Set body and mailTo fields MUST

```
$message->setBody('Message's body.');
$message->setMailTo('example@domain.com');
```

\####4. Send a message

```
$mailer = new Mailer($config);

if ($mailer->send($message)) {
    // Success
} else {
    // Error
};
```

Copyright © 2015-2016, ITCourses

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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 ~4 days

Total

4

Last Release

3794d ago

Major Versions

1.0.2 → 2.0.12016-02-01

2.0.1 → 3.0.02016-02-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14050982?v=4)[Serhii Malakhov](/maintainers/qwant50)[@qwant50](https://github.com/qwant50)

---

Top Contributors

[![qwant50](https://avatars.githubusercontent.com/u/14050982?v=4)](https://github.com/qwant50 "qwant50 (78 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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