PHPackages                             ome-tronet/laravel-frontapp-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. ome-tronet/laravel-frontapp-mailer

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

ome-tronet/laravel-frontapp-mailer
==================================

Laravel mail driver for Front customer service platform

v1.0.4(1y ago)061MITPHPPHP ^8.2

Since Oct 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ome-tronet/laravel-frontapp-mailer)[ Packagist](https://packagist.org/packages/ome-tronet/laravel-frontapp-mailer)[ Docs](https://github.com/ome-tronet/laravel-frontapp-mailer)[ GitHub Sponsors]()[ RSS](/packages/ome-tronet-laravel-frontapp-mailer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Laravel Frontapp mailer
=======================

[](#laravel-frontapp-mailer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/80bafaa156b480a68e4f9721fb267762ac981de073835af223696f8d4577bf4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d652d74726f6e65742f6c61726176656c2d66726f6e746170702d6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ome-tronet/laravel-frontapp-mailer)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e1d8773e48def0f169306dfcaac9b4f893250f3a047e73ba5b1bab3d70c6917a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6d652d74726f6e65742f6c61726176656c2d66726f6e746170702d6d61696c65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ome-tronet/laravel-frontapp-mailer/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/bb885f06d7977d677267dc20fb0a2412ad523603346a87431eb8441640dfd159/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6d652d74726f6e65742f6c61726176656c2d66726f6e746170702d6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ome-tronet/laravel-frontapp-mailer)

This package registers a laravel mailer so you can send your application's mails via Front API (). This can be useful if you are expecting a conversation with the recipient and want to follow it up in Front. You also have the option of tagging emails when they are sent in order to classify them in Front.

Requires
--------

[](#requires)

- PHP ^8.2
- Laravel ^10.0||^11.0

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

[](#installation)

You can install the package via composer:

```
composer require ome-tronet/laravel-frontapp-mailer
```

Add your Frontapp API token to your .env file like this:

```
FRONTAPP_API_TOKEN="your_token"
```

You must publish the config file `frontapp-mailer.php` in order to specify all allowed senders.

```
 php artisan vendor:publish --provider="tronet\FrontappMailer\FrontappServiceProvider"
```

Just FYI: This config will automatically be added as a new config key of `mail.mailers` by the package when booting.

To add your senders you need the Front `channel_id` of the shared inbox. If you want to send mails from a specific user you also need to provide the `author_id` of the teammate.

```
return [
    'transport' => 'front',
    'api_base_url' => 'https://api2.frontapp.com',
    'api_token' => env('FRONTAPP_API_TOKEN'),
    'senders' => [

        /*
         * You must specify all desired senders.
         *
         * Specify shared inboxes as senders
         * with their channel_id.
         *
         */

         'info@example.com' => [
            'channel_id' => 'cha_XXXXX'
         ]

        /*
         * Specify teammates as senders
         * with their author_id.
         * You can use non-existing addresses.
         *
         * 'teammate.info@example.com' => [
         *      'channel_id' => 'cha_XXXXX',
         *      'author_id' => 'tea_XXXXX'
         * ]
         *
         */

    ]
];
```

Usage
-----

[](#usage)

Create your mailable as usual with `php artisan make:mail MyMail` and use one of the senders you added to the `frontapp-mailer.php` config file as address in the envelope. You may also add front tags by their `tag_id` to the conversation upfront.

```
class MyMail extends Mailable
{
    // [...]

    public function envelope(): Envelope
    {
        return new Envelope(
            from: new Address('info@example.com'), // must be configured in frontapp-mailer.php
            subject: 'your_subject',
            tags: ['tag_XXXXX'],
        );
    }

    // [...]
}
```

Now you can use the Front mailer everywhere you like to send this mailable to your recipients.

```
use Illuminate\Support\Facades\Mail;

        Mail::mailer('front')
            ->to(['your_recipient'])
            ->cc(['your_cc_recipient'])
            ->bcc(['your_bcc_recipient'])
            ->send(new MyMail());
```

Where to get the API token
--------------------------

[](#where-to-get-the-api-token)

In the front app, go to Settings &gt; Developers and click on the API tokens tab. There you can get an existing API token or create a new one.

Where do I find the IDs of channels, authors, and tags
------------------------------------------------------

[](#where-do-i-find-the-ids-of-channels-authors-and-tags)

Go to Front's API reference page to list the channels, teammates and tags. If you provide your API token, the page will generate the API call ready to use as e.g. curl shell command:

-
-
-

Extract the IDs of the channels ('cha\_XXXXX'), authors ('tea\_XXXXX') and tags ('tag\_XXXXX') that you want to use in your application from the API responses.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

5

Last Release

561d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a34213fba0ac2bcb3e598ba402f8cbf554ec228542e217eff04084b6ffe94e8?d=identicon)[ome-tronet](/maintainers/ome-tronet)

---

Top Contributors

[![ome-tronet](https://avatars.githubusercontent.com/u/12525921?v=4)](https://github.com/ome-tronet "ome-tronet (27 commits)")

---

Tags

laravelOliver Merklinghauslaravel-frontapp-mailer

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/ome-tronet-laravel-frontapp-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/ome-tronet-laravel-frontapp-mailer/health.svg)](https://phpackages.com/packages/ome-tronet-laravel-frontapp-mailer)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[xammie/mailbook

Laravel Mail Explorer

482458.3k1](/packages/xammie-mailbook)[spatie/laravel-notification-log

Log notifications sent by your Laravel app

207902.8k](/packages/spatie-laravel-notification-log)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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