Note: Some plugins are not yet compatible with PHP 8 or WP 5.7 and are therefore deactivated
If you are sending any kind of email from your website, you are best of creating a dedicated email address for the purpose, and configure an SMTP plugin for sending emails using SSL/TLS and an option to log send emails for troubleshooting delivery issues.
Extract from WordPress.org
Post SMTP is a next-generation WP Mail SMTP plugin, that assists in the delivery of email generated by your WordPress site. Post SMTP is the first and only plugin to support the latest security standards. … The Connectivity Test and intelligent Setup Wizard scan your SMTP server to detect firewall blocks and eliminate configuration mistakes. The built-in Email Log is an invaluable resource for diagnosing problems with emails.https://wordpress.org/plugins/post-smtp/