Adsense

How to change WordPress default FROM email address

Simply paste the following snippet into your functions.php file. Don't forget to put the desired email adress on line 5 and desired name on line 8.

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
 return 'admin@yourdomain.com';
}
function new_mail_from_name($old) {
 return 'Your Blog Name';
}

No comments:

Post a Comment

comment here

newest questions on wordpress