You go and run phpinfo(), in your server.
There check “disable_functions“. That place the server side disabled the “mail“.
You have permission to write php.ini, You enable the “mail“.
If you have no permission, inform to server guys for this.
Then check. Basically this is the problem. Other things we check later.
Welcome to all peaceful life.