Oct 11, 2022 6:04 pm
Hi,
I found your very interesting information about changing Name and email address , in your documentation, using Code Snippet.
add_filter( 'wp_mail_from', function( $name ) {return 'noreply@mydomain.com'; } ); add_filter( 'wp_mail_from_name', function( $name ) {return 'My Forum Name'; } );
On the same website, I have :
A store: mystore.com with the name "The store"
A Blog: mystore.com/blog with the name "The Blog"
A forum: mystore.com/community with the name "The forum"
How do I set "The Forum" as the name for the "User Registration and Password Reset Emails" sender but ONLY for forum subscribers and not for "Store" customers and "Blog" readers?
Thanks for your support
2 Replies
Oct 12, 2022 10:07 am
wpForo doesn't have option to set the email sender name by User Roles. It better to set the Website Name as email sender.
Oct 12, 2022 12:31 pm
Ok, thank you.