Change Friendsroll Admin Email
Posted by steve on June 30th, 2008
I received a question today from one of our plugin users asking how to change the email address Friendsroll uses to notify you of new friend requests. Currently, it uses the admin email of your WordPress installation (which you can change by editing Settings->General->Email Address). If you’d like Friendsroll to send to an email other than the admin email address, you don’t have an “easy” way to do that. I’ll show you the “hard” way today, and we are going to put the easy way on our feature todo list.
In the WordPress plugin editor, load up the Friendsroll plugin and look for the following line (it’s line 88 in the current version):
wp_mail(get_option(’admin_email’), ‘A new friendsroll request was received.’, sprintf(FRIENDSROLL_ADMIN_EMAIL, trim($newFriend->_name), trim($newFriend->_email)));
Now all you need to do is simply update the first argument to that function as follows:
wp_mail(“youremail@host.com”, ‘A new friendsroll request was received.’, sprintf(FRIENDSROLL_ADMIN_EMAIL, trim($newFriend->_name), trim($newFriend->_email)));
Obviously, youremail@host.com should be replaced with the desired email.
That’s it! Friendsroll will now send new friend requests to the new email address.
















