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

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

vinelab/mailer
==============

Handles sending emails with different configuration possibilities

v1.0(10y ago)016MITPHP

Since Jun 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Vinelab/mailer)[ Packagist](https://packagist.org/packages/vinelab/mailer)[ RSS](/packages/vinelab-mailer/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/79870c2b4fd5cd4848a7c5a27722fee82e260086a166b8290c8c13e5bdde38dc/68747470733a2f2f7472617669732d63692e6f72672f56696e656c61622f6d61696c65722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Vinelab/mailer)

Mailer
------

[](#mailer)

Simplified mailing.

### Installation

[](#installation)

Using composer: [vinelab/mailer](http://packagist.org/packages/vinelab/mailer) `require: {"vinelab/mailer": "dev-master"}`

### Configuration

[](#configuration)

**IMPORTANT:** There must be a config/mail.php file a directory away from your DOCUMENT\_ROOT for this to work! Copy the config directory from this package.

```
// forked from laravel/framework

return array(

	/*
	|--------------------------------------------------------------------------
	| Mail Driver
	|--------------------------------------------------------------------------
	|
	| Laravel supports both SMTP and PHP's "mail" function as drivers for the
	| sending of e-mail. You may specifdriy which one you're using throughout
	| your application here. By default, Laravel is setup for SMTP mail.
	|
	| Supported: "smtp", "mail", "sendmail"
	|
	*/

	'driver' => 'mail',

	/*
	|--------------------------------------------------------------------------
	| SMTP Host Address
	|--------------------------------------------------------------------------
	|
	| Here you may provide the host address of the SMTP server used by your
	| applications. A default option is provided that is compatible with
	| the Postmark mail service, which will provide reliable delivery.
	|
	*/

	'host' => 'smtp.example.com',

	/*
	|--------------------------------------------------------------------------
	| SMTP Host Port
	|--------------------------------------------------------------------------
	|
	| This is the SMTP port used by your application to delivery e-mails to
	| users of your application. Like the host we have set this value to
	| stay compatible with the Postmark e-mail application by default.
	|
	*/

	'port' => 25,

	/*
	|--------------------------------------------------------------------------
	| E-Mail Encryption Protocol
	|--------------------------------------------------------------------------
	|
	| Here you may specify the encryption protocol that should be used when
	| the application send e-mail messages. A sensible default using the
	| transport layer security protocol should provide great security.
	|
	*/

	'encryption' => 'tls',

	/*
	|--------------------------------------------------------------------------
	| SMTP Server Username
	|--------------------------------------------------------------------------
	|
	| If your SMTP server requires a username for authentication, you should
	| set it here. This will get used to authenticate with your server on
	| connection. You may also set the "password" value below this one.
	|
	*/

	'username' => '',

	/*
	|--------------------------------------------------------------------------
	| SMTP Server Password
	|--------------------------------------------------------------------------
	|
	| Here you may set the password required by your SMTP server to send out
	| messages from your application. This will be given to the server on
	| connection so that the application will be able to send messages.
	|
	*/

	'password' => '',

	/*
	|--------------------------------------------------------------------------
	| Sendmail System Path
	|--------------------------------------------------------------------------
	|
	| When using the "sendmail" driver to send e-mails, we will need to know
	| the path to where Sendmail lives on this server. A default path has
	| been provided here, which will work well on most of your systems.
	|
	*/

	'sendmail' => '/usr/sbin/sendmail -bs',

);
```

### Usage

[](#usage)

```
require '../vendor/autoload.php';

use Vinelab\Mailer\Postman;

$postman = new Postman;
$postman->send(
	'from@email.com',
	'to@email.com',
	'My Subject Holiday',
	'Message body goes here',
	'Optionally - content type'
);

$postman->status; // output: 1 OR true if boolean
```

###  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 ~253 days

Total

4

Last Release

3987d ago

Major Versions

v0.1.2 → v1.02015-07-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4564469?v=4)[Sociata](/maintainers/Vinelab)[@Vinelab](https://github.com/Vinelab)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[spatie/laravel-slack-slash-command

Make a Laravel app respond to a slash command from Slack

254657.2k2](/packages/spatie-laravel-slack-slash-command)[benwilkins/laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel

209968.6k1](/packages/benwilkins-laravel-fcm-notification)[cspoo/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

1041.1M](/packages/cspoo-swiftmailer-mailgun-bundle)

PHPackages © 2026

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