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
1 Answer
Reset to default 1As 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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745377039a4625047.html
评论列表(0条)