
19.03.2008, 23:19
|
|
Участник форума
Регистрация: 28.07.2007
Сообщений: 177
С нами:
9888748
Репутация:
5
|
|
допишите чтоб еше с кодировкой нужной слал!
ато первый раз нормально приходит а потом каракули!
<?
if(isset($_POST['fio']))
{
$to = "to@mail.ru";
$from = "from@mail.ru";
$subject = "Инфа";
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$message = "<html>
<body bgcolor='#DCEEFC'>
<center>
</center>
<font color='red'>ФИО:".$_POST['fio']."</font><br>
<font color='blue'>E-mail:".$_POST['email']."</font><br>
<font color='green'>Phone:".$_POST['phone']."</font><br>
<font color='red'>Text:".$_POST['mess']."</font><br>
</body>
</html>";
mail($to, $subject, $message, $headers);
header("Location: legal.html");
}
?>
|
|
|