функция для оправки почты
Небольшай, простая функция для отправки почты
function htMail( $from, $to, $subj, $text)
{
//==============
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=windows-1251\r\n";
$headers .= "From: $from\r\n";
/==============
if (!mail("$to", "$subj", $text, $headers))
return 0;
else
return 1;
}
