PHPackages                             rareloop/lumberjack-email - 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. rareloop/lumberjack-email

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

rareloop/lumberjack-email
=========================

v1.5.0(7mo ago)373.1k↑25%31PHPCI passing

Since Feb 5Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/Rareloop/lumberjack-email)[ Packagist](https://packagist.org/packages/rareloop/lumberjack-email)[ RSS](/packages/rareloop-lumberjack-email/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (11)Used By (1)

Lumberjack Email
================

[](#lumberjack-email)

This package provides a simple way to send rich emails using Twig templates. A small wrapper around `wp_mail()`;

Once installed, register the Service Provider in `config/app.php`:

```
'providers' => [
    ...

    Rareloop\Lumberjack\Email\EmailServiceProvider::class,

    ...
],
```

Sending Emails
--------------

[](#sending-emails)

You then have access to the `Rareloop\Lumberjack\Email\Facades\Email` facade and can create emails:

### Send an HTML email

[](#send-an-html-email)

```
use Rareloop\Lumberjack\Email\Facades\Email;

Email::sendHTML(
    'recipient@mail.com',
    'Email Subject line',
    'Email body goes here'
);

// Or with a reply-to email
Email::sendHTML(
    'recipient@mail.com',
    'Email Subject line',
    'Email body goes here',
    'reply-to@mail.com'
);
```

### Send an HTML email using a Twig template

[](#send-an-html-email-using-a-twig-template)

The twig file will be compiled using Timber before sending.

```
use Rareloop\Lumberjack\Email\Facades\Email;

Email::sendHTMLFromTemplate(
    'recipient@mail.com',
    'Email Subject line',
    'email.twig',
    [ 'name' => 'Jane Doe' ] // Twig context
);
```

### Send a plain text email

[](#send-a-plain-text-email)

```
use Rareloop\Lumberjack\Email\Facades\Email;

Email::sendPlain(
    'recipient@mail.com',
    'Email Subject line',
    'Plain text body',
);
```

### Send an email with attachments

[](#send-an-email-with-attachments)

Each send method accepts an optional `attachments` parameter which will be passed on to `wp_mail` as it is received.

```
use Rareloop\Lumberjack\Email\Facades\Email;

Email::sendPlain(
    'recipient@mail.com',
    'Email Subject line',
    'Plain text body',
    false,  // Set reply-to to false if you don't need it, necessary because attachments is the final argument
    ['/path/to/file.pdf']
);
```

Config
------

[](#config)

You can also specify an SMTP server to use for emails by creating a `config/email.php` file:

```
return [
    'smtp' => [
        'hostname' => '',
        'username' => '',
        'password' => '',
        'auth' => true|false,
        'port' => '',
    ],
];
```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance64

Regular maintenance activity

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 56.3% 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 ~305 days

Recently: every ~454 days

Total

9

Last Release

216d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1554376?v=4)[Rareloop](/maintainers/rareloop)[@Rareloop](https://github.com/Rareloop)

---

Top Contributors

[![adamtomat](https://avatars.githubusercontent.com/u/2631499?v=4)](https://github.com/adamtomat "adamtomat (9 commits)")[![joelambert](https://avatars.githubusercontent.com/u/644362?v=4)](https://github.com/joelambert "joelambert (7 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rareloop-lumberjack-email/health.svg)

```
[![Health](https://phpackages.com/badges/rareloop-lumberjack-email/health.svg)](https://phpackages.com/packages/rareloop-lumberjack-email)
```

###  Alternatives

[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)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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