Title: Global SMTP
Author: Alexander Rohmann
Published: <strong>2015 年 9 月 7 日</strong>
Last modified: 2015 年 9 月 7 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/global-smtp.svg)

# Global SMTP

 作者：[Alexander Rohmann](https://profiles.wordpress.org/alexanderrohmann/)

[下载](https://downloads.wordpress.org/plugin/global-smtp.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/global-smtp/#description)
 * [评价](https://cn.wordpress.org/plugins/global-smtp/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/global-smtp/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/global-smtp/#developers)

 [支持](https://wordpress.org/support/plugin/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.

## 安装

#### Quick Setup

 1. Install the plugin, optionall as an mu plugin.
 2. Visit ‘Settings > Global SMTP Setup’ in your dashboard.
 3. Copy and paste the sample configuraiton to `wp-config.php` and update with your
    SMTP credentials.
 4. (optional) Add additional statements to complete the configuration for your smtp
    server.

#### Available Constants

**Required**
 GLOBAL_SMTP_HOST – The FQDN of the mail server (supplied by your SMTP
provider) GLOBAL_SMTP_USER – Username for accessing the mail server (most often 
your email address). GLOBAL_SMTP_PASSWORD – Password to authenticate your email 
account.

**Optional**
 GLOBAL_SMTP_FROM – Email address to use for outgoing mail. Uses WordPress
defaults when not set. Many hosts will force this to be the same as the username.
GLOBAL_SMTP_FROM_NAME – Name set in the From header for outgoing mail. Uses WordPress
defaults when not set. GLOBAL_SMTP_PORT – Port number for SMTP connection. Assumed
as 587 (for tls). GLOBAL_SMTP_SECURE – Encryption type. Assumed to be ‘tls’. Can
be ‘ssl’, ‘tls’, or ‘none’. GLOBAL_SMTP_AUTH_TYPE – Authentication type. Defaults
to ‘LOGIN’, can also be ‘PLAIN’ or ‘NTLM’.

    ```
    GLOBAL_SMTP_RETURN_PATH - Address to send bounced emails.

    GLOBAL_SMTP_REPLYTO_FROM - Email address shown in recipients mail client when clicking "Reply"

    GLOBAL_SMTP_DISABLE - Set to true to prevent this plugin from hooking into `wp_mail`. This is useful for environment specific configurations.
    ```

#### Troubleshooting

For troubleshooting, we recommend that you install the check email plugin:
 https://
wordpress.org/plugins/check-email/

If you add this statement to `wp-config.php` you will see debug output when sending
a test email via that plugin.

    ```
    define('GLOBAL_SMTP_DEBUG',true);
    ```

## 常见问题

  What does this plugin do?

It allows you to configure WordPress to send email via an SMTP account. You can 
use gmail for example.

  How does this plugin work?

Global SMTP hooks into the existing PHP Mailer class in WordPress and switches it
to use SMTP mode. It then provides the mailer class with SMTP credentials using 
values that you place in `wp-config.php`

## 评价

![](https://secure.gravatar.com/avatar/da371736a36e466cfa4f8a14ec3f3d1917aaa46676c4c6b6791c6466eef78871?
s=60&d=retro&r=g)

### 󠀁[Works with WP 5.0.2](https://wordpress.org/support/topic/works-with-wp-5-0-2/)󠁿

 [Feriman](https://profiles.wordpress.org/feriman/) 2018 年 12 月 30 日

Works well with WordPress 5.0.2.

![](https://secure.gravatar.com/avatar/3a5cfa3ed8d669bad074ef82323e40db54a483f9c84b1ceda261a794e785ff16?
s=60&d=retro&r=g)

### 󠀁[Lightweight plugin, Support Multisite](https://wordpress.org/support/topic/lightweight-plugin-support-multisite/)󠁿

 [ze3kr](https://profiles.wordpress.org/ze3kr/) 2016 年 9 月 3 日

This is the only SMTP plugin I found that works excellent with Multisite installed
WordPress. And supports TLS, SSL, and don’t use database and very fast!

![](https://secure.gravatar.com/avatar/79ce0890692f629bbd99e5f5489bb1d56848daf3a84f4755c245aa4f896221b3?
s=60&d=retro&r=g)

### 󠀁[Works with WP 4.4.2](https://wordpress.org/support/topic/works-with-wp-442/)󠁿

 [isabel104](https://profiles.wordpress.org/isabel104/) 2016 年 9 月 3 日

Lightweight and perfect. Does the job.

![](https://secure.gravatar.com/avatar/2e5c9049c119ed7779aeb9b2f70f35278aec83e1b557f7bc42cd6971eaeef1cc?
s=60&d=retro&r=g)

### 󠀁[Work Great](https://wordpress.org/support/topic/work-great-44/)󠁿

 [User78342324](https://profiles.wordpress.org/rune-vantage/) 2016 年 9 月 3 日

Great plugin. Works as expected.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/global-smtp/reviews/)

## 贡献者及开发者

「Global SMTP」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Alexander Rohmann ](https://profiles.wordpress.org/alexanderrohmann/)

[帮助将「Global SMTP」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/global-smtp)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/global-smtp/)，查看[SVN仓库](https://plugins.svn.wordpress.org/global-smtp/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/global-smtp/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/global-smtp/)。

## 更新日志

#### 1.0

 * Initial release.
 * Absorb original wp-multsite-smtp plugin, and make available as a standard plugin
   in additon to an mu plugin.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**11 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 4.1 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/global-smtp/)
 * 标签
 * [email](https://cn.wordpress.org/plugins/tags/email/)[multisite](https://cn.wordpress.org/plugins/tags/multisite/)
   [smtp](https://cn.wordpress.org/plugins/tags/smtp/)
 *  [高级视图](https://cn.wordpress.org/plugins/global-smtp/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/global-smtp/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/global-smtp/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/global-smtp/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/global-smtp/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/global-smtp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/global-smtp/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/global-smtp/reviews/)

## 贡献者

 *   [ Alexander Rohmann ](https://profiles.wordpress.org/alexanderrohmann/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/global-smtp/)