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

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

nanuc/frontend-mail
===================

1.0.1(4y ago)038PHPPHP ^8.0

Since Jul 31Pushed 4y agoCompare

[ Source](https://github.com/nanuc/frontend-mail)[ Packagist](https://packagist.org/packages/nanuc/frontend-mail)[ RSS](/packages/nanuc-frontend-mail/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

A mail driver to send mails in the frontend
===========================================

[](#a-mail-driver-to-send-mails-in-the-frontend)

This package send mail to the frontend of Laravel aps. This is useful for demos on landing pages.

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

[](#installation)

The package assumes that you have the stacks `scripts` and `styles` in your main Blade layout.

Install the package:

```
composer require nanuc/frontend-mail

```

Put the following somewhere in your views:

```

```

Put the following in `config/mail.php`:

```
'mailers' => [
    // other mailers
    'frontend' => [
        'transport' => 'frontend',
    ],
]

```

Set your mailer to `frontend` in `.env`:

```
MAIL_MAILER=frontend

```

Session ID modification
-----------------------

[](#session-id-modification)

You can change the ID that is used for the frontend in the Mailable. This is useful if you create mails outside of an user session.

```
class SomeMail extends Mailable
{
    public function build()
    {
        return $this->view('mails.some-mail')
            ->withSwiftMessage(function ($message){
                $message->getHeaders()->addTextHeader(
                    'Frontend-Mail-Id', $this->user->id
                );
            });
    }
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

2

Last Release

1749d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dd4066526f273592da88a5b863d5302bb171dd626ffd3e646a0f282a0dc4db2?d=identicon)[oleloSebastian](/maintainers/oleloSebastian)

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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