Title: TIVWP Email
Author: Gregory K. (@tivnet)
Published: <strong>2014 年 5 月 5 日</strong>
Last modified: 2020 年 9 月 16 日

---

搜索插件

![](https://ps.w.org/tivwp-email/assets/banner-772x250.png?rev=908539)

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

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

# TIVWP Email

 作者：[Gregory K. (@tivnet)](https://profiles.wordpress.org/tivnet/)

[下载](https://downloads.wordpress.org/plugin/tivwp-email.zip)

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

 [支持](https://wordpress.org/support/plugin/tivwp-email/)

## 描述

**TIVWP Email** is a plugin for WordPress developers. Its main features are:

 * Configure SMTP Email. Particularly useful on Windows machines.
 * MAIL_TO overwriting. Force all email to be sent to one address. Useful on staging
   environment when you do not want email to be sent to the real users.

The settings are stored in a configuration file (`wp-config.php` or similar), so
they are not accidentally copied from development to production.

## 屏幕截图

[⌊Admin interface to test email settings⌉⌊Admin interface to test email settings⌉[

Admin interface to test email settings

## 安装

You can install this plugin directly from your WordPress dashboard:

 1. Go to the _Plugins_ menu and click _Add New_.
 2. Search for _TIVWP Email_.
 3. Click _Install Now_ next to the TIVWP Email plugin.
 4. Activate the plugin.

Alternatively, see the guide to [Manually Installing Plugins](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

## 常见问题

### Testing:

To check the configuration settings, and to send a test email, go to Tools->TIVWP
Email in admin.

### Configuration Example:

$GLOBALS[‘TIVWP’][‘EMAIL’] = array(
 // Using GMail SMTP ‘SMTP_ENABLED’ => true,‘
SMTP_HOST’ => ‘smtp.gmail.com’, ‘SMTP_PORT’ => ‘587’, ‘SMTP_SECURE’ => ‘tls’, ‘SMTP_AUTH’
=> true, ‘SMTP_USER’ => ‘me@gmail.com’, ‘SMTP_PASSWORD’ => ‘*****’, // Forcing all
email sent to … // (better if not the same as the SMTP_USER) ‘MAIL_TO’ => ‘me@hotmail.
com’, ‘SMTP_OPTIONS’ => array( ‘ssl’ => array( ‘verify_peer’ => false, ‘verify_peer_name’
=> false, ‘allow_self_signed’ => true, ) ), );

## 评价

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

### 󠀁[Using this plugin for 2 years with no problems](https://wordpress.org/support/topic/using-this-plugin-for-2-year-with-no-problems/)󠁿

 [Gregory K. (@tivnet)](https://profiles.wordpress.org/tivnet/) 2016 年 9 月 3 日

The main reason to write this plugin was to have different email configurations 
on development and production machines without going each time to the options panel.
So, the settings are in WP config instead. Try it, and you’ll use it in each project!
P.S. Check out my other plugins, starting from https://wordpress.org/plugins/wpglobus/

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/tivwp-email/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Gregory K. (@tivnet) ](https://profiles.wordpress.org/tivnet/)
 *   [ TIV.NET INC. ](https://profiles.wordpress.org/tivnetinc/)

[帮助将「TIVWP Email」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/tivwp-email)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.4

 * Fix: PHPMailer namespace error.
 * Code cleanup using the latest PHP inspections and phpcs.

#### 1.0.3

 * Added configuration parameter `SMTP_OPTIONS`.
 * Code cleanup using the latest PHP inspections and phpcs.
 * Checked with WordPress 4.7.3, the latest versions of [WooCommerce](https://woocommerce.com/)
   and [WPGlobus](https://wpglobus.com/).

#### 1.0.2

 * Code cleanup using the latest PHP inspections and phpcs.
 * Checked with WordPress 4.6.

#### 1.0.1

 * Fix: Start on ‘plugins_loaded’ instead of ‘wp_loaded’. (Contact Form 7, for example,
   sends emails on ‘init’)

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**6 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **5.5.20**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/tivwp-email/)
 * 标签
 * [developer](https://cn.wordpress.org/plugins/tags/developer/)[development](https://cn.wordpress.org/plugins/tags/development/)
   [email](https://cn.wordpress.org/plugins/tags/email/)[smtp](https://cn.wordpress.org/plugins/tags/smtp/)
   [TIVWP](https://cn.wordpress.org/plugins/tags/tivwp/)
 *  [高级视图](https://cn.wordpress.org/plugins/tivwp-email/advanced/)

## 评级

 5 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/tivwp-email/reviews/#new-post)

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

## 贡献者

 *   [ Gregory K. (@tivnet) ](https://profiles.wordpress.org/tivnet/)
 *   [ TIV.NET INC. ](https://profiles.wordpress.org/tivnetinc/)

## 支持

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

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