Як використовувати функцію PHP mail()?

To use PHP mail() function, you need to create a mailbox in the Mail section in the user panel and add it as a sender address in the header From.

Example code:
$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@happyuser.mintme.host';
mail($to, $subject, $message, $headers);

PHP mail() function is disabled on free hosting accounts.