Home » Tutorials » Wordpress » Change WordPress from Email Title

Change WordPress from Email Title

change wordpress from mail title

A very common WordPress problem is that the emails come in the inbox from “Wordpress” as sender. That’s not very representative for your users. For example if user wants to reset his password, he receives confirmation email not from your website, but from WordPress.

Here’s a Quick Tip how to fix that. Simply open the functions.php file of your theme with some text editor and paste the following code at the bottom.

function res_fromemail($email) {

$wpfrom = get_option('admin_email');

return $wpfrom;

}

function res_fromname($email){

$wpfrom = get_option('blogname');

return $wpfrom;

}

add_filter('wp_mail_from', 'res_fromemail');

add_filter('wp_mail_from_name', 'res_fromname');

You can find the functions.php file in the public_html/wp-content/themes/MyTheme/ directory.

A very common WordPress problem is that the emails come in the inbox from “Wordpress” as sender. That’s not very representative for your users. For example if user wants to reset his password, he receives confirmation email not from your website, but from WordPress. Here’s a Quick Tip how to…

0%

User Rating: 4.6 ( 1 votes)
0

About Georgi Dyulgerov

Georgi Dyulgerov

Founder of fTutorials.com - the website aiming to keep you in touch with the latest technologies in the brand. Also a Freelance web developer.

Check Also

wordpress website speed

How to Speed Up your WordPress Site

Site speed is one of the most important characteristics for any product website, blog, online ...

Leave a Reply

Your email address will not be published. Required fields are marked *


Loading Facebook Comments ...