[root@pi ~]# echo "The тест test body" | mail -s "The тест test subject" eugene@..v.pro
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "pey@gmail.com";
$to = "eugene@m...pro";
$subject = "PHP Mail Test script";
$message = "This is a test (тест) to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test (тест) email sent";
?>