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 2mo ago

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 54% 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

3747d ago

Major Versions

1.0.2 → 2.0.12016-02-01

2.0.1 → 3.0.02016-02-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/947301eface276a6749ba3c236cc5526756d45f5fe0fc6b548cebeea8bdb6225?d=identicon)[qwant50](/maintainers/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

[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)
