Mail function is not working in OJS3.3.0-8 with PHP8.0

Description of issue: Recently I updated OJS3.3.0-8 from 3.3.0-7 successfully. I switch the PHP version to 8.0 and reset the password of a user account which give a 500 error. After switching back PHP version to 7.4, the password reset works as expected.

Steps I took leading up to the issue: Change PHP version from 7.4 to 8.0 and tried to reset password.
What I tried to resolve the issue: I contacted the server provider and they suggest resolving this issue with the help of the application developer. They also provide the following link for further guidance on this issue-

Application Version: OJS 3.3.0-8
Additional information: I did not enable SMTP in the config file. Error log shows the message, Could not instantiate mail function.
Thanks