2017 © Pedro Peláez
 

wordpress-muplugin global-smtp

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

image

rohmann/global-smtp

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

  • Monday, September 7, 2015
  • by rohmann
  • Repository
  • 12 Watchers
  • 60 Stars
  • 135 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 6 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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., (*1)

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

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., (*3)

Once the plugin is installing installed, add the constants to wp-config.php, (*4)

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

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 -> 587 * Secure -> tls, (*6)

You can specify your own with these statements:, (*7)

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:, (*8)

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, (*9)

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

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., (*11)

define('GLOBAL_SMTP_DISABLE',true);, (*12)

That will prevent Global SMTP from initializing at all; quite useful for development environments., (*13)

Debugging

This plugin will trigger warnings if you've done something wrong. Just be sure to have WP_DEBUG enabled., (*14)

You can turn on SMTP debug by including this statement:, (*15)

define('GLOBAL_SMTP_DEBUG',true);, (*16)

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

Have any ideas for improvement? Pull requests are welcome! :), (*18)

The Versions

07/09 2015

dev-master

9999999-dev https://github.com/rohmann/global-smtp

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

  Sources   Download

GPLv2

The Requires

 

wordpress multisite smtp

07/09 2015

1.0

1.0.0.0 https://github.com/rohmann/global-smtp

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

  Sources   Download

GPLv2

The Requires

 

wordpress multisite smtp