if ( !isset( $from_email ) ) {
$sitename = parse_url( strtolower( WP_HOME ) )['host'];
if ( substr( $sitename, 0, 4 ) == 'www.' ) {
$sitename = substr( $sitename, 4 );
}
$from_email = 'wordpress@' . $sitename;
}
Edit: you still need to strip out www. if it exits. Also not compatible with < PHP 5.4
GTA V is the top grossing game of all time and sold 90 million copies on 3 platforms. Minecraft has sold 150 across way more platforms and has been around way longer.