Hello everyone, I have a function:
public static function sendEmail($to, $theme, $body){ $headers = "MIME-Version: 1.0\r\n"; $headers .= "From: Техническая поддержка <support@test.ru>\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; mail($to, $theme, $body, $headers); } And when I send to the column from whom, always the name of the hosting (for example: lastch test_pr1_am hb@astral.beget.ru), and the sign I indicated in the header is not substituted, tell me where is my error?