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

ActiveWordpress-plugin[Mail &amp; Notifications](/categories/mail)

andriilive/wp-phpmailer-smtp
============================

Configure wordpress PHPMailer to send mail via SMTP.

12PHP

Since Sep 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/andriilive/wp-phpmailer-smtp)[ Packagist](https://packagist.org/packages/andriilive/wp-phpmailer-smtp)[ RSS](/packages/andriilive-wp-phpmailer-smtp/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

WordPress PHPMailer SMTP Configuration Plugin
=============================================

[](#wordpress-phpmailer-smtp-configuration-plugin)

[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine) [![GitHub @andriilive](https://camo.githubusercontent.com/4e5e8efd19aee231397c58b703c0eda9f680584b5b74902d7f32afe700fd5dcb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f6c6c6f776572732f616e647269696c6976653f6c6162656c3d40616e647269696c697665267374796c653d736f6369616c)](https://www.github.com/andriilive)

Configure WP PHPMailer to send mail via SMTP, by defining the SMTP configuration in the `wp-config.php` file.

- Requires PHP at least `8.0`
- Tested with WP `5.8.1`-`6.4.1.`
- Supports [Bedrock](https://roots.io/bedrock) `WordPress` installs

Bedrock installation
--------------------

[](#bedrock-installation)

1. Edit the `.env` file
2. Require the package via composer

```
# Required SMTP configuration
SMTP_HOST=smtp.xxx.com
SMTP_PORT=465
SMTP_USERNAME=bot@digitalandy.eu
SMTP_PASSWORD=xxxxxxxx

# Optional
SMTP_FROM=bot@digitalandy.eu
SMTP_FROM_NAME=Bot
DISABLE_WP_PHPMAILER_SMTP=true
SMTP_REPLY_TO=hi@digitalandy.eu
```

```
composer require andriilive/wp-phpmailer-smtp
```

Manual installation
-------------------

[](#manual-installation)

1. Edit the `wp-config.php` file
2. Put the `wp-phpmailer-smtp.php` file in to `mu-plugins` or `plugins` dir

### wp-config.php

[](#wp-configphp)

Add SMTP configuration to wp-config.php file

```
/* Required SMTP configuration */
define('SMTP_HOST', 'smtp.xxx.com');
define('SMTP_PORT', 465);
define('SMTP_USERNAME', 'bot@digitalandy.eu');
define('SMTP_PASSWORD', 'xxxxxxxx');

/* Optional */
define('SMTP_FROM', 'bot@digitalandy.eu'); // From email
define('SMTP_FROM_NAME', 'Bot'); // From name
define('DISABLE_WP_PHPMAILER_SMTP', true); // Disable WP PHPMailer SMTP
define('SMTP_REPLY_TO', ''); // Adds reply-to header
```

### Download `wp-phpmailer-smtp.php`

[](#download-wp-phpmailer-smtpphp)

Launch the following command in the `mu-plugins` or `plugins` directory

```
wget https://raw.githubusercontent.com/digitalandy/wp-phpmailer-smtp/main/wp-phpmailer-smtp.php -O wp-phpmailer-smtp.php
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43708848?v=4)[Andrii Iv. (@digitalandyeu)](/maintainers/andriilive)[@andriilive](https://github.com/andriilive)

---

Top Contributors

[![andriilive](https://avatars.githubusercontent.com/u/43708848?v=4)](https://github.com/andriilive "andriilive (4 commits)")

---

Tags

badrockwordpresswordpress-packagistwpwp-plugin

### Embed Badge

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

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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