Change Default From Address in WordPress by the two methods I am going to list below. Default From address is sometimes like [email protected] when it send email to any user.
Method #1
Put this code in your theme's functions.php File at the end after ?> & change [email protected] and Ahmad Awais
<?phpadd_filter('wp_mail_from', 'new_mail_from');add_filter('wp_mail_from_name', 'new_mail_from_name');function new_mail_from($old) {return '[email protected]';}function new_mail_from_name($old) {return 'Ahmad Awais';}?>
Method #2
Put this code in your theme's functions.php File at the end after ?> and admin Email will be used :)
<?phpadd_filter('wp_mail_from', 'new_mail_from');function new_mail_from($old) {
$admin_email = get_option('admin_email');
return $admin_email;
}?>
6 replies on “Change Default From Address in WordPress : 2 Methods”
Well Done, Ahmad but not useful for me, as I don’t use WordPress Subscription System! :D
Well it is good if you want your site to run in a professional way
Nice Post, this surely is gonna help me in near Future.
I use Feedburner for Subscribers, for comments the Plugin Subscribe to Comments!
That is a nice plugin
Why not there is more for you :)