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

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

mabasic/mailer
==============

Laravel 4 package for more efficient email sending inspired by Laracasts.

2.0.0(10y ago)6236MITPHPPHP &gt;=5.4.0

Since Jun 30Pushed 10y ago3 watchersCompare

[ Source](https://github.com/mabasic/mailer)[ Packagist](https://packagist.org/packages/mabasic/mailer)[ RSS](/packages/mabasic-mailer/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Mailer
======

[](#mailer)

Laravel 4 package for more efficient email sending inspired by Laracasts lessons:

- [Mailers](https://laracasts.com/lessons/mailers)
- [Handlers and Mailers](https://laracasts.com/series/build-a-laravel-app-from-scratch/episodes/27)

**What does it exactly do?**

It enables you to write this:

```
$this->contactMailer->send($data);
```

from your controller, instead of doing this:

```
Mail::queue($view, $data, function($message) use($email, $subject)
{
    $message->to($email)->subject($subject);
});
```

every time you want to send an email.

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

[](#installation)

From your project root type:

```
composer require mabasic/mailer

```

Usage
-----

[](#usage)

Create a class for specific case like so:

```
