PHPackages                             rohmann/global-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. rohmann/global-smtp

AbandonedArchivedWordpress-muplugin[Mail &amp; Notifications](/categories/mail)

rohmann/global-smtp
===================

Utility plugin to setup SMTP mail via constants in wp-config.php

1.0(10y ago)621.2k26[2 issues](https://github.com/rohmann/global-smtp/issues)[3 PRs](https://github.com/rohmann/global-smtp/pulls)GPLv2PHPPHP &gt;=5.3.0

Since Sep 7Pushed 9y ago11 watchersCompare

[ Source](https://github.com/rohmann/global-smtp)[ Packagist](https://packagist.org/packages/rohmann/global-smtp)[ Docs](https://github.com/rohmann/global-smtp)[ RSS](/packages/rohmann-global-smtp/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Global SMTP
===========

[](#global-smtp)

Global SMTP is a utility plugin designed to easily configure SMTP for WordPress by adding a set of constants to your `wp-config.php` file.

When used with multisite, the configuration is applied network wide. This is often handy to install as a "must use" plugin.

Getting started
---------------

[](#getting-started)

First install as a WordPress pluing. Optionally, you could install as a "must use" plugin by placing `smtp.php` in `wp-content/mu-plugins`.

Once the plugin is installing installed, add the constants to `wp-config.php`

The minimum requirement is setting the host, username, and password. Everything else will be assumed from some defaults.

```
define('GLOBAL_SMTP_HOST','mail.example.com');
define('GLOBAL_SMTP_USER','admin@example.com');
define('GLOBAL_SMTP_PASSWORD','password');

```

Assumed defaults:

- From and From Name: WordPress defaults (or possibly overriden by your mail server)
- Port -&gt; 587
- Secure -&gt; tls

You can specify your own with these statements:

```
define('GLOBAL_SMTP_FROM','you@example.com');
define('GLOBAL_SMTP_FROM_NAME','Your Name');
define('GLOBAL_SMTP_PORT',465); // use SSL
define('GLOBAL_SMTP_SECURE;','ssl');

```

You can also specify some other values for the SMTP mailer:

`GLOBAL_SMTP_RETURN_PATH` - Bounce address `GLOBAL_SMTP_REPLYTO_FROM` - Email address for client side replies `GLOBAL_SMTP_REPLYTO_FROM_NAME` - Name for client side replies

`GLOBAL_SMTP_AUTH_TYPE` - Can be `'LOGIN'`, `'PLAIN'`, `'NTLM'` (defaults to `'LOGIN'`)

Environment Specific Settings
-----------------------------

[](#environment-specific-settings)

Because all the configuration happens via PHP constants, you can have different configurations depending on what kind of server environment is being used. For example, you could set up staging email addresses, and have your staging environment isolated from the production environment.

`define('GLOBAL_SMTP_DISABLE',true);`

That will prevent Global SMTP from initializing at all; quite useful for development environments.

Debugging
---------

[](#debugging)

This plugin will trigger warnings if you've done something wrong. Just be sure to have [WP\_DEBUG](http://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG "Title") enabled.

You can turn on SMTP debug by including this statement:

`define('GLOBAL_SMTP_DEBUG',true);`

This will display debug output from the PHP Mailer class when combined with the [http://wordpress.org/plugins/check-email/](http://wordpress.org/plugins/check-email/ "Check Email") plugin. This allows you to send a test message and troubleshoot any connectivity problems.

Have any ideas for improvement? Pull requests are welcome! :)

###  Health Score

33

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3848d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9864be571c7a6905f97d61248ae675d8a2f69780593ee235b619c8b834cbea52?d=identicon)[rohmann](/maintainers/rohmann)

---

Top Contributors

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

---

Tags

wordpressmultisitesmtp

### Embed Badge

![Health badge](/badges/rohmann-global-smtp/health.svg)

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

###  Alternatives

[jason-munro/cypht

Lightweight Open Source webmail written in PHP and JavaScript

1.4k142.4k](/packages/jason-munro-cypht)[itinerisltd/wp-phpmailer

WP PHPMailer provides a clean and simple way to configure WordPress-bundled PHPMailer library, allowing you to quickly get started sending mail through a local or cloud based service of your choice.

6231.6k](/packages/itinerisltd-wp-phpmailer)[markguinn/silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails

3145.4k1](/packages/markguinn-silverstripe-email-helpers)

PHPackages © 2026

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