This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Создать файл test.php c кодом (затем перейти для проверки по адресу www.your-domen.ru/test.php): | |
<?php | |
function mail_utf8($to, $subject = '(No subject)', $message = '', $from) { | |
$header = 'MIME-Version: 1.0' . "\n" . 'Content-type: text/plain; charset=UTF-8' | |
. "\n" . 'From: Yourname <' . $from . ">\n"; | |
return mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, $header); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body></body> | |
</html> |