PHPackages                             fractal512/plain-smtp-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. fractal512/plain-smtp-mailer

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

fractal512/plain-smtp-mailer
============================

Laravel 5+ plain SMTP mailer package.

v1.0.0(5y ago)010MITPHPPHP ^5.6|^7.2|^8.0

Since Feb 4Pushed 5y ago1 watchersCompare

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

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

Plain SMTP Mailer for Laravel 5+
================================

[](#plain-smtp-mailer-for-laravel-5)

Custom mail driver for [Laravel 5+](http://www.laravel.com/) working with SMTP server via a socket.

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

[](#installation)

The Plain SMTP Mailer can be installed via [Composer](http://getcomposer.org) by requiring the `fractal512/plain-smtp-mailer` package:

```
composer require fractal512/plain-smtp-mailer

```

or add `fractal512/plain-smtp-mailer` to `require` section and set the `minimum-stability` to `dev` (required for Laravel 5) in your project's `composer.json`:

```
{
    "require": {
        "laravel/framework": "5.0.*",
        "fractal512/plain-smtp-mailer": "^1.0"
    },
    "minimum-stability": "dev"
}
```

then update your packages with `composer update` or install with `composer install`.

Registration in Laravel
-----------------------

[](#registration-in-laravel)

No need in versions with auto discovery (Laravel 5.5+). Register the Plain SMTP Mailer Service Provider in the `providers` key in `config/app.php`.

```
    'providers' => [
        // ...
        'Fractal512\PlainSmtpMailer\PlainSmtpMailerServiceProvider',
    ]
```

for Laravel 5.1+

```
    'providers' => [
        // ...
        Fractal512\PlainSmtpMailer\PlainSmtpMailerServiceProvider::class,
    ]
```

Configuration
-------------

[](#configuration)

Publish the package `mailer.php` config file to apply your own settings.

```
$ php artisan vendor:publish --tag=mailerconfig
```

or run (Laravel 8+)

```
$ php artisan vendor:publish
```

then enter the number of the `Fractal512\PlainSmtpMailer\PlainSmtpMailerServiceProvider` service provider.

Options in config file refer to options for mail driver in the app `.env` file:

```
MAIL_DRIVER=PlainSmtpMailer
MAIL_DOMAIN=example.com
MAIL_HOST=smtp.example.com
MAIL_PORT=25
MAIL_USERNAME=noreply@example.com
MAIL_PASSWORD=12345678
MAIL_CLIENT="Desired mail client full name like: Outlook Express (v1.0)...|The Bat! (v1.0)...|Mozilla Thunderbird (v1.0)... etc."
MAIL_ENCRYPTION=null

```

Usage
-----

[](#usage)

You need configured SMTP server with account created on your hosting. You can use built in Laravel mail functionality with Plain SMTP Mailer, just enable `PlainSmtpMailer` driver in `.env` by setting:

```
MAIL_DRIVER=PlainSmtpMailer

```

and adding all the other needed options in MAIL section as shown in `Configuration` section above.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

1923d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/733562df7e4a3214a62bb9e4a2c52e2d52dc2355a3d2f61463f0c09d7a39d945?d=identicon)[fractal512](/maintainers/fractal512)

---

Top Contributors

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

---

Tags

mailsmtplaravel5 mailer

### Embed Badge

![Health badge](/badges/fractal512-plain-smtp-mailer/health.svg)

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

###  Alternatives

[nette/mail

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

5389.8M246](/packages/nette-mail)[mlocati/spf-lib

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

67867.9k2](/packages/mlocati-spf-lib)[pear/net_smtp

An implementation of the SMTP protocol

263.0M16](/packages/pear-net-smtp)[txthinking/mailer

A very lightweight PHP SMTP mail sender

10098.9k3](/packages/txthinking-mailer)[thefox/smtpd

SMTP server (library) written in pure PHP.

1302.4k1](/packages/thefox-smtpd)[elm/identity_smtp

Individual SMTP settings for every identity

481.5k](/packages/elm-identity-smtp)

PHPackages © 2026

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