Download the PHP package rohmann/global-smtp without Composer
On this page you can find all versions of the php package rohmann/global-smtp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rohmann/global-smtp
More information about rohmann/global-smtp
Files in rohmann/global-smtp
Package global-smtp
Short Description Utility plugin to setup SMTP mail via constants in wp-config.php
License GPLv2
Homepage https://github.com/rohmann/global-smtp
Informations about the package 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
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.
Assumed defaults:
- From and From Name: WordPress defaults (or possibly overriden by your mail server)
- Port -> 587
- Secure -> tls
You can specify your own with these statements:
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
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
This plugin will trigger warnings if you've done something wrong. Just be sure to have WP_DEBUG 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/ plugin. This allows you to send a test message and troubleshoot any connectivity problems.
Have any ideas for improvement? Pull requests are welcome! :)