< ?
function xmail( $from, $to, $subj, $text, $filename)
{
$f = fopen($filename,"rb");
$un = strtoupper(uniqid(time()));
$head = "from: $from
";
$head<a id="more-165"></a> .= "to: $to
";
$head .= "subject: $subj
";
$head .= "x-mailer: phpmail tool
";
$head .= "reply-to: $from
";
$head .= "mime-version: 1.0
";
$head .= "content-type:multipart/mixed;";
$head .= "boundary="----------".$un.""

";
$zag = "------------".$un."
content-type:text/html;
";
$zag .= "content-transfer-encoding: 8bit

$text

";
$zag .= "------------".$un."
";
$zag .= "content-type: application/octet-stream;";
$zag .= "name="".basename($filename).""
";
$zag .= "content-transfer-encoding:base64
";
$zag .= "content-disposition:attachment;";
$zag .= "filename="".basename($filename).""

";
$zag .= chunk_split(base64_encode(fread($f,filesize($filename))))."
";
if (!@mail("$to", "$subj", $zag, $head))
return 0;
else
return 1;
}
?> 



Постоянные ссылки

При копировании ссылка на TeaM RSN обязательна!

URI

Html (ЖЖ)

BB-код (Для форумов)

Оставить комментарий

Вы должны войти, чтобы оставить комментарий.