Change SMTP settings for BBPress

Hello,
I need to change some SMTP settings for BBPress to make it compatible with this plugin.
https://wordpress.org/plugins/wp-smtp/

I have read through some old BBPress posts, but I have not found a working solution. I need to be able to change the sender name and sender email address. Can you please find me some working code?

Thanks heroes,
Alex :smiley: