View file magmail/mtest.php
<? function encode_koi($string) { $encode = base64_encode($string); $text = "=?dkoi8-r?B?"; $text = $text.$encode."?="; return $text; } $subject = encode_koi("рТПЧЕТПЮЛБ-1"); $res=Mail("[email protected]",$subject, "test-1"); echo "OK"; ?>