Currently, if you have no email role anywhere on your cluster, websites cannot use PHP mail(). If the website is mapped to an email server, the website can use PHP mail().
From v11.0.0, if you prefer not to use the local MTA, you can run:
systemctl stop postfix
systemctl disable postfix