Спасибо за ссылку. Скопировала к себе и ничего не получаеться.

Код:
<?PHP
$headers = "MIME-Version: 1.0\r\n".
"Content-type: text/html; charset=windows-1251\r\n".
function utf8_to_windows1255($utf8) {
$windows1255 = "";
$chars = preg_split("//",$utf8);
for ($i=1; $i<count($chars)-1; $i++) {
$prefix = ord($chars[$i]);
$suffix = ord($chars[$i+1]);
//print ("<p>$prefix $suffix");
if ($prefix==215) {
$windows1255 .= chr($suffix+80);
$i++;
}
elseif ($prefix==214) {
$windows1255 .= chr($suffix+16);
$i++;
}
else {
$windows1255 .= $chars[$i];
}
}
return $windows1255;
}
$adminaddress = "test.ru";
$siteaddress ="http://www.test.ru/";
$sitename = "test.ru";
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");
// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action != ""):
mail("$adminaddress","тест Website запрос",
"при посещении сайта была следующая информация оставлена\n\n
имя: $vorname
фамилия: $name
фирма: $firma
улица: $strasse
город: $plzort
телефон: $telefon
факс: $fax
E-mail: $email
сообщение: $anmerkung
------------------------------
$comments
Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
//This sends a confirmation to your visitor
mail("$email","Спасибо за ваше посещение $sitename",
"Здравствуйте $vorname $name,\n
Спасибо за ваш интерес к нашей продукции .\n
Через некоторое время вы получите информацию.\n
с уважением,\n
фирма
$siteaddress","FROM:$adminaddress");
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Спасибо за посещение нашего сайта <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
endif;
?>