WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

WP Mail From II

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

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

WP Mail From II

作者:Ben Huson
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

This plugin allows you to set the email address and name used for emails sent by WordPress by setting the From: header.

It is an updated and fully re-worked version of the WP Mail From plugin by Tristan Aston and now works with the latest versions of WordPress.

  • Adds a “Mail From” section in the “Settings” menu.
  • The plugin uses the filter hooks wp_mail_from and wp_mail_from_name.
  • The priority for the hooks is set to 1 to allow for other plugins that may hook these with the default priority of 10 to override this plugin.

Danish translation by Frederik Svarre (www.fslab.dk)

屏幕截图

  • The settings page

安装

Either install via the WordPress admin plugin installer or…

  1. Unzip wp-mailfrom-ii.zip in the /wp-content/plugins/ directory, making sure the folder is called wp-mailfrom-ii.
  2. 通过WordPress的“插件”菜单激活插件。
  3. Visit the admin settings page Settings > Mail From and save your preferred name and email address.

Upgrading from the old WP Mail From plugin

This version is pretty much a complete re-write, fixes loads of bugs and works with the most recent versions of WordPress.

If upgrading from the WP Mail From plugin your current name an email settings should be copied across but please check.
To upgrade simply activate this plugin then deactivate the old WP Mail From plugin.

Option naming conventions have changed in this version of the plugin.
If you accessed either of the options directly for any reason you will need to re-factor you code as support for the old options will be removed in a future version.

The old options used to be retrieved as follows:

get_option( 'site_mail_from_name' );
get_option( 'site_mail_from_email' );

You should now use:

get_option( 'wp_mailfrom_ii_name' );
get_option( 'wp_mailfrom_ii_email' );

常见问题

Why does the From address still show as the default or show up as ‘sent on behalf of’ the default address?

Possibly your mail server has added a Sender: header or is configured to always set the envelope sender to the user calling it.

Why are emails not being sent?

Some hosts may refuse to relay mail from an unknown domain. See https://trac.wordpress.org/ticket/5007 for more details.

评价

Lets me update Email From

Fahrenhe1t 2017 年 1 月 3 日
I have a Wordpress installation on a local network, sending emails through sSMTP. The mail relay does not allow default “From” addresses to have “wordpress@home” with no “.com.” The plugin allows me to change the email address to be valid, and allows mails to go through.

The only one that works on WP Engine so far

noelsaw 2016 年 11 月 18 日
Great plugin. This is the only 1 out 4 (found here on WP.org repo) that would work in one of WP Engine’s environment (one of of their different infrastructure providers).

Works in 4.5.3, keeps emails professional

John.Hicks 2016 年 9 月 3 日
The plugin worked for me, using 4.5.3. If you’re here, you might be having issues with your hosting account sending emails as something like (BlueHost): username@boxXXX.bluehost.com This is a problem. 1) It doesn’t look professional, 2) it hands out your username! This plugin helps you catch any plugins using wordpres@yoursite.com, making it more of a one-stop solution, rather than digging through each of your plugin’s settings to possibly find a solution.

Solved my problem

Knopenman 2016 年 9 月 3 日
E-mail confirmation of contact form bounced, but this plugin solved the problem

Simple and effective

Marco Chiesi 2016 年 9 月 3 日
It just does what it is supposed to do. Thanks. P.S. I think these settings should part of WordPress core.

Works

gebiert 2016 年 9 月 3 日
Not much to say here: the plugin works as expected.
阅读所有23条评价

贡献者及开发者

「WP Mail From II」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Ben Huson

「WP Mail From II」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「WP Mail From II」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

2.0

  • Add default values as placeholders in admin fields.
  • New method of getting sitename in WordPress 5.5+

1.2

  • Make admin field labels clickable. Props Viktor Szépe.
  • Remove deprecated screen_icon().

1.1.1

  • Added Hungarian translation. Props Viktor Szépe.
  • Bump WordPress requirements.

1.1

  • Added options to override the default WordPress email address and admin email address.
  • Added ‘wp_mailfrom_ii_default_from’ filter so you can add compatibility if the pluggable wp_mail() function is altered to use a different default email address.
  • Delete plugin options when uninstalled.
  • Reworked as a singleton class.
  • Remove filter support for original WP MailFrom plugin.

1.0.2

  • Only set email address and name if overwriting the default WordPress values.

1.0.1

  • Correctly style “save settings” button.

1.0

  • Pretty much re-coded from scratch – now based around a core WP_MailFrom_II class.
  • Uses the WordPress Settings API.
  • Stores name and email as wp_mailfrom_ii_name and wp_mailfrom_ii_email options. Upgrade support is provided for old options.

额外信息

  • 版本 2.0
  • 最后更新:5 年前
  • 活跃安装数量 6,000+
  • WordPress 版本 4.3 或更高版本
  • 已测试的最高版本为 5.6.14
  • 语言

    English (UK) 、 English (US) 和 Italian.

    翻译成简体中文

  • 标签
    email fromfrom addressfrom emailmailmail from
  • 高级视图

评级

5 星(最高 5 星)。
  • 23 条 5 星评价 5 星 23
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

添加我的评价

查看全部评论

贡献者

  • Ben Huson

支持

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

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • Visit our TikTok account
  • 访问我们的 YouTube 频道
  • Visit our Tumblr account
代码如诗