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

Reset Password - change from name and email address. It stucks at admin. Want to change it to info

programmeradmin0浏览0评论

At the admin dashboard of my wordpress under wordpress settings > general my admin email is set as [email protected]

Here is my issue. When a customer wants to reset her or his password automated mail is sending from [email protected] instead of the admin email I setup at the settings > general

Basically I want to change from email address from [email protected] to [email protected] for automated reset password emails

Thanks

At the admin dashboard of my wordpress under wordpress settings > general my admin email is set as [email protected]

Here is my issue. When a customer wants to reset her or his password automated mail is sending from [email protected] instead of the admin email I setup at the settings > general

Basically I want to change from email address from [email protected] to [email protected] for automated reset password emails

Thanks

Share Improve this question edited Jun 23, 2019 at 10:45 Papalino asked Jun 23, 2019 at 10:28 PapalinoPapalino 12 bronze badges 1
  • Welcome to WordPress Stack Exchange! Sorry you got downvoted. But unfortunately stating just facts makes your question way too broad. Please update your question to include your previous attempts; to share a detailed and narrowly-scoped problem and where exactly you are stuck right now. Many thanks :) – norman.lol Commented Jun 23, 2019 at 10:39
Add a comment  | 

1 Answer 1

Reset to default 1

As you can see here, WordPress will use WordPress as sender name and wordpress@<SITENAME> as sender email, if these params were note passed to wp_mail.

You can use wp_mail_from and wp_mail_from_name filters to modify these values though.

So if you want to change the sender e-mail address, just use this code:

add_filter( 'wp_mail_from', function( $email ) {
    return '[email protected]';
});

PS. But [email protected] is not a default email address that should be used, so maybe one of your plugins/theme is already changing that.

发布评论

评论列表(0)

  1. 暂无评论