function bxmail($to, $subject, $message, $additional_headers="", $additional_parameters="")
{
if(function_exists("custom_mail"))
return custom_mail($to, $subject, $message, $additional_headers, $additional_parameters);
if($additional_parameters!="")
return @mail($to, $subject, $message, $additional_headers, $additional_parameters);
return @mail($to, $subject, $message, $additional_headers);
}
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
if (mail("EMAIL ПОЛУЧАТЕЛЯ", "Test mail", "Проверка отправки почты")) {
echo "ok";
} else {
echo "error";}
?>