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

I changed the email at Settings > General from [email protected] to [email protected]. It seems like the email didn&#

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744919281a4601031.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信