PHPackages                             nickfairchild/themosis-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. nickfairchild/themosis-mail

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

nickfairchild/themosis-mail
===========================

Mail package for Themosis.

v1.0.1(8y ago)176MITPHPPHP &gt;=5.6

Since Mar 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nickfairchild/themosis-mail)[ Packagist](https://packagist.org/packages/nickfairchild/themosis-mail)[ RSS](/packages/nickfairchild-themosis-mail/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Themosis Mail
=============

[](#themosis-mail)

[![Build Status](https://camo.githubusercontent.com/02098ba9f0752afc6bf00752144baa1e5110e12f78ffd60e1027d25ed18d1363/68747470733a2f2f7472617669732d63692e6f72672f6e69636b666169726368696c642f7468656d6f7369732d6d61696c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nickfairchild/themosis-mail)

This is a package that adds Laravel's mail package to themosis for a nicer way to create and send mail in WordPress.

Usage
-----

[](#usage)

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

```
composer require nickfairchild/themosis-mail
```

### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

Add the provider within `config/providers.config.php`

```
return [
   NickFairchild/Mail/MailServiceProvider::class,
];
```

### Step 3: Add the mail config file

[](#step-3-add-the-mail-config-file)

Now create a new config file `config/mail.config.php`

```
return [

    /*
    |--------------------------------------------------------------------------
    | Mail Driver
    |--------------------------------------------------------------------------
    |
    | Supported: "mail", "smtp", "sendmail", "mailgun", "mandrill",
    |            "ses", "sparkpost", "log", "array"
    |
    */

    'driver' => env('MAIL_DRIVER', 'mail'),

    /*
    |--------------------------------------------------------------------------
    | SMTP Host Address
    |--------------------------------------------------------------------------
    |
    | Here you may provide the host address of the SMTP server used by your
    | applications. A default option is provided that is compatible with
    | the Mailgun mail service which will provide reliable deliveries.
    |
    */

    'host' => env('MAIL_HOST', 'smtp.mailgun.org'),

    /*
    |--------------------------------------------------------------------------
    | SMTP Host Port
    |--------------------------------------------------------------------------
    |
    | This is the SMTP port used by your application to deliver e-mails to
    | users of the application. Like the host we have set this value to
    | stay compatible with the Mailgun e-mail application by default.
    |
    */

    'port' => env('MAIL_PORT', 587),

    /*
    |--------------------------------------------------------------------------
    | Global "From" Address
    |--------------------------------------------------------------------------
    |
    | You may wish for all e-mails sent by your application to be sent from
    | the same address. Here, you may specify a name and address that is
    | used globally for all e-mails that are sent by your application.
    |
    */

    'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
        'name' => env('MAIL_FROM_NAME', 'Example'),
    ],

    /*
    |--------------------------------------------------------------------------
    | E-Mail Encryption Protocol
    |--------------------------------------------------------------------------
    |
    | Here you may specify the encryption protocol that should be used when
    | the application send e-mail messages. A sensible default using the
    | transport layer security protocol should provide great security.
    |
    */

    'encryption' => env('MAIL_ENCRYPTION', 'tls'),

    /*
    |--------------------------------------------------------------------------
    | SMTP Server Username
    |--------------------------------------------------------------------------
    |
    | If your SMTP server requires a username for authentication, you should
    | set it here. This will get used to authenticate with your server on
    | connection. You may also set the "password" value below this one.
    |
    */

    'username' => env('MAIL_USERNAME'),

    'password' => env('MAIL_PASSWORD'),

    /*
    |--------------------------------------------------------------------------
    | Sendmail System Path
    |--------------------------------------------------------------------------
    |
    | When using the "sendmail" driver to send e-mails, we will need to know
    | the path to where Sendmail lives on this server. A default path has
    | been provided here, which will work well on most of your systems.
    |
    */

    'sendmail' => '/usr/sbin/sendmail -bs',

    /*
    |--------------------------------------------------------------------------
    | Markdown Mail Settings
    |--------------------------------------------------------------------------
    |
    | If you are using Markdown based email rendering, you may configure your
    | theme and component paths here, allowing you to customize the design
    | of the emails. Or, you may simply stick with the Laravel defaults!
    |
    */

    'markdown' => [
        'theme' => 'default',

        'paths' => [
            themosis_path('resources.view')('views/vendor/mail'),
        ],
    ],

];
```

### Step 4: Add the services config file

[](#step-4-add-the-services-config-file)

If you are going to be using an smtp driver such as mailgun or sparkpost you will need to create `config/services.config.php` and add the following

```
return [

    'mailgun' => [
        'domain' => env('MAILGUN_DOMAIN'),
        'secret' => env('MAILGUN_SECRET'),
    ],

    'sparkpost' => [
        'secret' => env('SPARKPOST_SECRET'),
    ],

];
```

Now the rest works like Laravel which you can view the documentation[here](https://laravel.com/docs/5.4/mail)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~91 days

Total

2

Last Release

3243d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

v1.0.1PHP &gt;=5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2872063?v=4)[Nick Fairchild](/maintainers/nickfairchild)[@nickfairchild](https://github.com/nickfairchild)

---

Top Contributors

[![nick-thunderbolt](https://avatars.githubusercontent.com/u/12796131?v=4)](https://github.com/nick-thunderbolt "nick-thunderbolt (7 commits)")[![nickfairchild](https://avatars.githubusercontent.com/u/2872063?v=4)](https://github.com/nickfairchild "nickfairchild (1 commits)")

### Embed Badge

![Health badge](/badges/nickfairchild-themosis-mail/health.svg)

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

###  Alternatives

[fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

5974.6M3](/packages/fedeisas-laravel-mail-css-inliner)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[coconutcraig/laravel-postmark

Laravel package for sending mail via the Postmark API

2152.9M1](/packages/coconutcraig-laravel-postmark)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

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

The Illuminate Notifications package.

483.0M967](/packages/illuminate-notifications)[squareboat/sneaker

An easy way to send emails with stack trace whenever an exception occurs on the server for Laravel Applications.

220191.2k](/packages/squareboat-sneaker)

PHPackages © 2026

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