As this is told in many other threads of this forum: please use a SMTP plugin to do it.
This is not a task of this plugin. This plugin use WordPress mail functions to send emails.
You can also add a few lines of code to a functions.php (ex. of your child theme) to do the same job. For instructions, see this page (part 2): https://www.wpbeginner.com/plugins/how-to-change-sender-name-in-outgoing-wordpress-email/
It is not the same changing the outgoing sender email than sending mails through an SMTP server to pass spam filters in the proper way.
If you want only to change the outgoing send emails, the code you share is a better solution.