If WordPress is unable to instantiate the mail() function, that means your server or PHP configuration has caused the issue. In this case, even an SMTP plugin won’t be able to send emails as long as the mail() function cannot be instantiated.
Please contact your hosting support so they can help you resolve the issue.
The error “Could not instantiate mail function” in WordPress is usually caused by a server issue. Some hosting servers have strict limits on email sending, or the PHP mail() function may be disabled or have issues.