The problem is that bbpress is adding a filter ‘wp_mail_from_name’ when the plugin is loaded.
/**
* Set "From" name in outgoing email to the site name.
*
* @uses bp_get_option() fetches the value for a meta_key in the wp_X_options table.
*
* @return string The blog name for the root blog.
*/
function bp_core_email_from_name_filter() {
return apply_filters( 'bp_core_email_from_name_filter', bp_get_option( 'blogname', 'WordPress' ) );
}
add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );
My plugin also uses this filter. It applies it just before sending a mail and then removes it afterwards. When applying the filter it also checks whether any other plugin has already changed the from name from the default: ‘WordPress’, if so it does not apply the filter. When BBPress is active, the from name is not the default so the filter is not applied. This has been done so that the plugin works well with other plugins such as wp-mail-smtp which also allows the from name to be set.
I would like to request that BBPress only applies this filter at the time of sending the mail and then removes it afterwards as it only applies to emails that are sent from BBPress.