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

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

rubricate/mailer
================

Component for sending emails via authenticated SMTP. It works on remote servers with support for sockets (fsockopen) and TLS.

v1.1.0(1y ago)1170MITPHPPHP &gt;=7.2.0

Since Jun 1Pushed 1y agoCompare

[ Source](https://github.com/rubricate/mailer)[ Packagist](https://packagist.org/packages/rubricate/mailer)[ Docs](https://rubricate.github.io/components/mailer)[ RSS](/packages/rubricate-mailer/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (6)Used By (0)

Rubricate Mailer
================

[](#rubricate-mailer)

[![Maintainer](https://camo.githubusercontent.com/12ec67552930b171d896cce3a73e9f9ff96c1d805edf534227f34a9c929bf4f9/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406573746566616e696f6e73616e746f732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://estefanionsantos.github.io/)[![Source Code](https://camo.githubusercontent.com/5a8e5556319429251ed850debee799e1f373bc043792792cabb6db58aca23d00/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d7275627269636174652f6d61696c65722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/rubricate/mailer)[![PHP from Packagist](https://camo.githubusercontent.com/e6d5f87638e5c551bc413284361e1492f63d63ceefcf77176eaf0b9e3c00c7e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7275627269636174652f6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rubricate/mailer)[![Latest Version](https://camo.githubusercontent.com/30aff8aeb5b4e8f9061583e136d127b5c5e72a3886d9f8045e82612f77951905/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7275627269636174652f6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/rubricate/mailer/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/6fb6a39f96fedddb25ded8b7308b0d16c06b6bdc85806f6281967f2dbcaa62bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7275627269636174652f6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rubricate/mailer)

#### Last Version

[](#last-version)

```
$ composer require rubricate/mailer

```

Documentation is at

#### Requirements

[](#requirements)

- PHP server with sockets and TLS/SSL support

Check if your PHP server supports sockets and TLS/SSL:

#### 1. Sockets support in PHP

[](#1-sockets-support-in-php)

If sockets appears, support is enabled.

```
php -m | grep sockets

```

or code:

```
if (extension_loaded('sockets')) {
    echo "Sockets extension is enabled.";
} else {
    echo "Sockets extension is NOT enabled.";
}
```

#### 2. TLS/SSL support (via OpenSSL)

[](#2-tlsssl-support-via-openssl)

TLS is supported via the openssl extension. This extension is used for secure connections (SMTP with TLS/SSL, HTTPS, etc.).

```
php -m | grep openssl

```

or via code:

```
if (extension_loaded('openssl')) {
    echo "OpenSSL is enabled (TLS/SSL support)";
} else {
    echo "OpenSSL is NOT enabled";
}
```

#### Usage example

[](#usage-example)

```
$mailer = new SmtpMailer(
    'smtp.gmail.com', // Host
    587, // Port
    'yourmail@gmail.com', // User
    'your_password_or_appkey', // Password or App Password
    'yourmail@gmail.com', // Sender
    'Your Name', // Sender's Name
    true // Enable debugging
);

try {
    $mailer->send(
        'destination@example.com', // Recipient
        'Pure SMTP email test', // Subject
        'Working!This is a test via Rubricate Mailer.', // Body
        true // Send as HTML
    );

    echo "Email sent successfully!";

} catch (Exception $e) {
    echo "Error sending: " . $e->getMessage();
}
```

Credits
-------

[](#credits)

- [Estefanio N Santos](https://github.com/estefanionsantos) (Developer)
- [All Contributors](https://github.com/rubricate/mailer/contributors) (Let's program)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/rubricate/mailer/master/LICENSE) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance47

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

5

Last Release

395d ago

Major Versions

v0.1.2 → v1.0.02025-06-01

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

mailmailersmtp

### Embed Badge

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

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

###  Alternatives

[nette/mail

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

54010.2M281](/packages/nette-mail)[aplus/email

Aplus Framework Email Library

2561.6M3](/packages/aplus-email)[mlocati/spf-lib

Parse, build and validate SPF (Sender Policy Framework) DNS records

68955.6k4](/packages/mlocati-spf-lib)[pear/net_smtp

An implementation of the SMTP protocol

263.2M23](/packages/pear-net-smtp)[voku/bounce-mail-handler

Bounce Mail Handler

50246.0k2](/packages/voku-bounce-mail-handler)[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28168.0k](/packages/boundstate-yii2-mailgun)

PHPackages © 2026

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