PHPackages                             log1x/wp-smtp - 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. log1x/wp-smtp

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

log1x/wp-smtp
=============

Simple package for handling WordPress SMTP with .env when using the Roots stack.

v1.0.2(5y ago)3711.4k↓50%3MITPHP

Since Mar 22Pushed 4y ago8 watchersCompare

[ Source](https://github.com/Log1x/wp-smtp)[ Packagist](https://packagist.org/packages/log1x/wp-smtp)[ RSS](/packages/log1x-wp-smtp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

WP SMTP
=======

[](#wp-smtp)

[![Latest Stable Version](https://camo.githubusercontent.com/1a6523e19471d818d18e7f232fcad4256f624a5ef3e942cac47e37cd3a4fd1e4/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6731782f77702d736d74702f762f737461626c65)](https://packagist.org/packages/log1x/wp-smtp) [![Total Downloads](https://camo.githubusercontent.com/78fa209e5e119b90c66924389e93268b750fa174e3af333b92b82ddf473beef7/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6731782f77702d736d74702f646f776e6c6f616473)](https://packagist.org/packages/log1x/wp-smtp)

WP SMTP is a simple Composer package for handling WordPress SMTP with `.env`. No admin menus or [other bloat](https://blog.sucuri.net/2019/03/0day-vulnerability-in-easy-wp-smtp-affects-thousands-of-sites.html). Just a simple admin notice to verify your connection when needed and the ability to do a simple task WordPress should probably be handling natively.

Getting Started
---------------

[](#getting-started)

### Requirements

[](#requirements)

- [Sage](https://github.com/roots/sage) &gt;= 9.0
- [Bedrock](https://github.com/roots/bedrock)
- [PHP](https://secure.php.net/manual/en/install.php) &gt;= 7.1.3
- [Composer](https://getcomposer.org/download/)

### Installation

[](#installation)

Install via Composer:

```
composer require log1x/wp-smtp
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

All configuration goes into `.env`.

#### Required

[](#required)

```
WP_SMTP_HOST=mail.example.com  # Host
WP_SMTP_USERNAME=example       # Username
WP_SMTP_PASSWORD=secure123     # Password

```

#### Optional

[](#optional)

```
WP_SMTP_PORT=587                      # Port
WP_SMTP_PROTOCOL=tls                  # Protocol
WP_SMTP_TIMEOUT=10                    # Timeout
WP_SMTP_FORCEFROM=example@example.com # Force From Email
WP_SMTP_FORCEFROMNAME=Example         # Force From Name

```

#### Mailhog

[](#mailhog)

```
WP_SMTP_HOST=localhost
WP_SMTP_PORT=1025
WP_SMTP_PROTOCOL=false

```

Debugging
---------

[](#debugging)

> SMTP connect() failed.

This error means the initial connection to your host/port failed.

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

[](#contributing)

Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated. When contributing code, please follow the existing code style.

If you're feeling generous, I also take contributions in the form of [coffee &amp; energy drinks](https://www.buymeacoffee.com/log1x).

License
-------

[](#license)

WP SMTP is provided under the [MIT License](https://github.com/log1x/wp-smtp/blob/master/LICENSE.md).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% 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 ~336 days

Total

3

Last Release

1942d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5745907?v=4)[Brandon](/maintainers/Log1x)[@Log1x](https://github.com/Log1x)

---

Top Contributors

[![Log1x](https://avatars.githubusercontent.com/u/5745907?v=4)](https://github.com/Log1x "Log1x (7 commits)")[![jhhazelaar](https://avatars.githubusercontent.com/u/215711?v=4)](https://github.com/jhhazelaar "jhhazelaar (3 commits)")[![tangrufus](https://avatars.githubusercontent.com/u/2259834?v=4)](https://github.com/tangrufus "tangrufus (1 commits)")

---

Tags

bedrockmailrootssagesmtpwordpress

### Embed Badge

![Health badge](/badges/log1x-wp-smtp/health.svg)

```
[![Health](https://phpackages.com/badges/log1x-wp-smtp/health.svg)](https://phpackages.com/packages/log1x-wp-smtp)
```

###  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)
