PHPackages                             radoan/memail - 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. radoan/memail

ActiveLibrary

radoan/memail
=============

This package will automate mailing process for laravel application.

10HTML

Since Apr 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/revendol/memail)[ Packagist](https://packagist.org/packages/radoan/memail)[ RSS](/packages/radoan-memail/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Memail
======

[](#memail)

Memail is a PHP Laravel library for automate email sending. It sits on Laravel Mail and send dynamic email created with campaign and template. Template customizable but Campaign is not. Once you specify the title of campaign you can not edit it. But you can change related template.

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

[](#installation)

Use composer to install the memail.

```
composer require radoan/memail
```

Service Provider
----------------

[](#service-provider)

Add service provider in your `config/app.php`

```
Radoan\Memail\MemailServiceProvider::class,
```

Facade
------

[](#facade)

Add aliases in your `config/app.php`

```
'Memail' => Radoan\Memail\Facades\Memail::class,
```

Publish Vendor
--------------

[](#publish-vendor)

Publish vendor files by bellow command and selecting `Radoan\Memail` package

```
php artisan vendor:publish --provider="Radoan\Memail\MemailServiceProvider"
```

Run migration command
---------------------

[](#run-migration-command)

Run migration command to get necessary database tables.

```
php artisan migrate
```

Changing view files
-------------------

[](#changing-view-files)

Now you are about to go. You published view files needed by the package to `/resources/views/memail` diractory. Now all you need to do is customizing the views according to your need. See example bellow.

```
@extends('layout.app')

@section('contents')
    {{-- Keep the views under your layout and sections --}}
@endsection
```

Usage
-----

[](#usage)

Now you can send email if you have smtp credentials set in your `.env` or `/config/mail.php`. If you did everything right then you will be able to send emails by bellow code. Everything will be explaind in comment.

```
Memail::send($to, $campaignTitle, [
        'data'=> [
            //keys are macroses decleared in template
            //Values are data what will replace macros
            'name' => 'Radoan Hossain'
        ],
        'attachments'   => [ 'path/to/attachment/file' ],
        'options'       => [
            //If you need cc
            'cc'        =>  'example@example.com',
            //If you need bcc
            'bcc'       =>  'example@example.com',
            //Enable queue but you will need to configure your queues before using this feature.
            'queue'     =>  true,
            //Delayed Message Queueing but you need to send the time
            //$when = now()->addMinutes(10);
            'later'     =>  $when
        ]
    ]);
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

Find me on upWork
-----------------

[](#find-me-on-upwork)

[Radoan Hossan](https://www.upwork.com/o/profiles/users/~01f31be6e769b953e4/)

Find me on Linkedin
-------------------

[](#find-me-on-linkedin)

[Radoan Hossan](https://www.linkedin.com/in/revendol/)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/352ffc336c1b71537696567a2d68d6f63bd7b74d031125e54574f7bc6c4505d2?d=identicon)[revendol](/maintainers/revendol)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/radoan-memail/health.svg)

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

PHPackages © 2026

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