最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp mail - Must I change the admin user email address while changing the general email address?

programmeradmin2浏览0评论

I changed the email at Settings > General from [email protected] to [email protected]. It seems like the email didn't change, although I received the confirmation email to change. I'm still receiving emails from [email protected].

Do I still need to change the Administrator email under Users to [email protected] for the change to take effect?

Using WP 5.1.3

I changed the email at Settings > General from [email protected] to [email protected]. It seems like the email didn't change, although I received the confirmation email to change. I'm still receiving emails from [email protected].

Do I still need to change the Administrator email under Users to [email protected] for the change to take effect?

Using WP 5.1.3

Share Improve this question edited Dec 11, 2019 at 3:50 butlerblog 5,1213 gold badges28 silver badges44 bronze badges asked Dec 8, 2019 at 11:29 vocotipexvocotipex 211 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 2

The email address that emails such as new user notification or password resets come "from" is not the same as the site's admin email. While it's possible to have the actual email address be the same for both of these, they are completely unrelated to each other.

In WP's Settings > General, the "Administration Email Address" is the email address used to administer the site. This is saved in the WP db options table (wp_options) as "admin_email".

This value should not be confused with the "from" email address that emails going through wp_mail() will come from (or appear to be coming from). These are two entirely different things.

If you want to change the address that emails come from, you need to do one of two possible things:

  1. Filter the "from" address for wp_mail() using the wp_mail_from and wp_mail_from_name filters.
  2. Configure wp_mail() to send through an authenticated SMTP account or install a plugin to do it for you.

Update: It sounds like you might already be using one of the two above methods to change the "from" address. You'll need to update that accordingly if you're changing the email address.

发布评论

评论列表(0)

  1. 暂无评论