Good day!

$headers = 'MIME-Version: 1.0 Content-type: text/html; charset=utf-8'; $subject = 'Я люблю людей!'; $mailtxt = 'Грёбанный кибастут!'; mb_language("uni"); mb_send_mail("peoples@yandex.ru", $subject, $mailtxt, $headers); 

Why is the text not displayed in the letter? Is there a problem in the code, or in .htaccess? By the way, I will give its contents:

 RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html php_value mbstring.func_overload 1 php_value mbstring.internal_encoding UTF-8 php_value mbstring.http_output UTF-8 php_value mbstring.http_input UTF-8 
  • Where are the headers and body of the letter? - gecube
  • The body of the letter is contained in $ mailtxt, the header is in $ headers) - AriekDev
  • one
    You did not understand - I want to look at the result of the code execution :-) in the form of "raw" text of the letter. Then I'll tell you what the trap is. And so - it's hard for me to say. I am not so megaexpert on php. - gecube
  • The result is as follows: I receive a letter, but the Russian characters have disappeared, only the punctuation marks + English text remain. In short, if you don’t know the flash-solutions, don’t worry, gecube :( I basically can send a letter in iso-8859-1 format, but in GMail_e in the list of letters there is an abracadabra, where after the subject'a there are a couple of words preview “a letter, like this: - 18:19 [OwnerNavigator from Vasya Pupkin] sÔ.È.Î sys- tems from the author - This is not aesthetically pleasing, very bad, although everything in the letter is ok. It is advised to use ONLY utf-8, but You see, I have a Russian text cut off. - AriekDev
  • And the script encoding is probably CP-1251 (ANSI)? - gecube

1 answer 1

Transform the page with the script into UTF-8, good luck and new victories;)