$mail = new PHPMailer(true);
try {
$mail->CharSet = "UTF-8";
$mail->setFrom('admin@potok.ru', 'potok.ru');
$mail->addAddress($user_email);
$mail->isHTML(true);
$mail->Subject = "Новый заказ №{$order_id}";
ob_start();
require \APP . "/views/mail/{$tpl}.php";
$body = ob_get_clean();
$mail->Body = $body;
return $mail->send();
} catch (\Exception $e) {
return false;
}