Always fake $_SERVER['SERVER_NAME'] when invoking wp_mail() during tests

This is a blanket fix for PHP errors that otherwise arise when calling any BP
function that results in an email notification being sent.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7664 cdf35c40-ae34-48e0-9cc9-0c9da1808c22