Hi @lktan
Are you running your debug script from the command line or a browser? The PHP mail functions might be disabled for CGI or PHP-FPM. If you look at the Administration area in your installation, there’s a way to get extended information about the PHP configuration of the server, which may tell you if mail is turned off, generally.
Best
Jason