The reason is that the home catalog of the scripts is set in HOME=/, which is why the messages to be sent through a Cron job fail to send.In order to solve the problem, you have to:
HOME=/
HOME
You can configure the mail server in the Bitrix virtual appliance menu.
Having acquired the options, the configuration screen will show them for review:
Specify here the following parameters: