PHPackages                             effectra/mail - 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. effectra/mail

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

effectra/mail
=============

The Effectra Mail package.

v2.1.0(2y ago)2311MITPHP

Since Jun 18Pushed 2y agoCompare

[ Source](https://github.com/effectra/mail)[ Packagist](https://packagist.org/packages/effectra/mail)[ RSS](/packages/effectra-mail/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (1)

Effectra\\Mail
==============

[](#effectramail)

Effectra\\Mail is a package that provides a flexible and easy-to-use email sending functionality for your applications. It supports multiple mail drivers and allows you to configure various email settings such as the mail server host, port, authentication, and more.

Features
--------

[](#features)

- Support for multiple mail drivers (SMTP, sendmail, etc.)
- Configuration options for mail server settings
- Easy setup and usage
- Exception handling for mail sending errors

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

[](#installation)

You can install the Effectra\\Mail package via Composer. Run the following command in your terminal:

```
composer require effectra/mail
```

Usage
-----

[](#usage)

### Creating a Mailer Instance

[](#creating-a-mailer-instance)

To send emails using the Effectra\\Mail package, you need to create a mailer instance. The `MailerFactory` class provides a convenient way to create the mailer instance:

```
use Effectra\Mail\Mailer;

// Create a mailer instance
$mailer = new Mailer(
    'smtp',         // Mail driver (e.g., 'smtp', 'sendmail')
    'mail.example.com',  // Mail server host
    587,            // Mail server port
    'username',     // Username for authentication
    'password',     // Password for authentication
    'info@example.com'  // "From" email address
);
```

### Sending an Email

[](#sending-an-email)

Once you have a mailer instance, you can use it to send emails. The `Mailer` class provides methods for setting the email recipients, subject, content, and more. Here's an example of sending an email:

```
$mail = new Mail();
// Set email recipients
$mail->to('recipient1@example.com');
$mail->cc('recipient2@example.com');
$mail->bcc('recipient3@example.com');

// Set email subject and content
$mail->subject('Hello, world!');
$mail->text('This is the plain text content of the email.');
$mail->html('This is the HTML content of the email.');

// Send the email
try {
    $mailer->send($mail);
    echo 'Email sent successfully!';
} catch (Exception $e) {
    echo 'An error occurred while sending the email: ' . $e->getMessage();
}
```

Feel free to explore the `Mailer` class and its methods to customize the email sending process according to your needs.

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

Contributing
------------

[](#contributing)

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please create an issue or submit a pull request on the GitHub repository.

Credits
-------

[](#credits)

Effectra\\Mail is developed and maintained by [Mohammed Taha](https://github.com/bmtMohammedTaha).

Support
-------

[](#support)

For any questions or support regarding the Effectra\\Mail package, please contact .

```

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Total

3

Last Release

962d ago

Major Versions

v1.0.0 → v2.0.02023-12-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e6219ae87e98df8783b2f595b013035dd183c0712afd24045a8acf0a40c3bdf?d=identicon)[effectra](/maintainers/effectra)

---

Top Contributors

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

---

Tags

imapmailphpphpmailerphpmailer-librarypop3sendmailsmtp

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/effectra-mail/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[symfony/mailer

Helps sending emails

1.6k424.2M1.7k](/packages/symfony-mailer)[illuminate/mail

The Illuminate Mail package.

5910.7M572](/packages/illuminate-mail)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.5M254](/packages/api-platform-metadata)[mikopbx/core

Free PBX system for SMB based on Asterisk

5711.4k](/packages/mikopbx-core)

PHPackages © 2026

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