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

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.

屏幕截图

安装

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.

常见问题

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,
)
),
);

评价

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条评价

贡献者及开发者

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

贡献者

帮助将「TIVWP Email」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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 and WPGlobus.

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