Title: wp_mail to XMPP
Author: Mako N
Published: <strong>2013 年 12 月 28 日</strong>
Last modified: 2015 年 12 月 9 日

---

搜索插件

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

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

# wp_mail to XMPP

 作者：[Mako N](https://profiles.wordpress.org/mako09/)

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

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

 [支持](https://wordpress.org/support/plugin/wp-mail2xmpp/)

## 描述

This plugin sends XMPP notifications to the users who are registered and set their
own Jabber ID. Emails to them are able to be suppressed.

This plugin provides a function to be added ‘wp_mail’ hook in `wp_mail()` located
in `wp-includes/pluggable.php`.

This plugin requires [XMPP Enabled](https://wordpress.org/plugins/xmpp-enabled/)
plugin.

#### Filter Hook

The function `xmpp_sender()` in this plugin has two filter hooks.

Using ‘abort_xmpp_sender’ hook allow abort all processing. For example, you want
to send email independent of user or JID when the subject has a particular keyword.
You may add a function which checks the subject and returns `true` if keyword is
found.

Using ’email_to_jid’ hook allow set/unset JID correspond to email address. Default
function of this hook, `email2jid()` returns JID when the user is registered to 
the site and his/her JID is set. If you want to send email but XMPP to a particular
user, add a function which returns `false`.

## 安装

 1. [XMPP Enabled](https://wordpress.org/extend/plugins/xmpp-enabled/) plugin is required.
    Install it and configure.
 2. Upload the `wp-mail2xmpp` folder to your `/wp-content/plugins/` directory.
 3. Activate the plugin using the `Plugins` menu in WordPress.
 4. Go to XMPP Enabled -> wp_mail to XMPP, adjust option.
 5. Set each user’s JID to Jabber ID field in his/har profile page.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Mako N ](https://profiles.wordpress.org/mako09/)

「wp_mail to XMPP」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-mail2xmpp/contributors)
为本插件所做的贡献。

[帮助将「wp_mail to XMPP」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-mail2xmpp)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * Rearranged settings page.

#### 0.4

 * Created hooks.

#### 0.3

 * Public release
 * Changed plugin name.

#### 0.2

 * Initial release.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.6 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-mail2xmpp/) 和 [Japanese](https://ja.wordpress.org/plugins/wp-mail2xmpp/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-mail2xmpp)
 * 标签
 * [e-mail](https://cn.wordpress.org/plugins/tags/e-mail/)[e-mails](https://cn.wordpress.org/plugins/tags/e-mails/)
   [email](https://cn.wordpress.org/plugins/tags/email/)[emails](https://cn.wordpress.org/plugins/tags/emails/)
   [jabber](https://cn.wordpress.org/plugins/tags/jabber/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-mail2xmpp/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Mako N ](https://profiles.wordpress.org/mako09/)

## 支持

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

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