PHP
2
Вклад в тег
<?php
$zip = new ZipArchive();
$zip->open('archive1.zip', , ZIPARCHIVE::CREATE);
$files = scandir($papka); // $papka перем. с путэм к папке
foreach($files as $file){
if ($file == '.' || $file == '..' ){continue;}
$f = $papka.DIRECTORY_SEPARATOR.$file;
$zip->addFile($f);
}
$zip->close();
$html = "<table>
<tr>
<td>Заказ</td>
<td>{$_POST['zakaz']}</td>
</tr>
</table>";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
mail('meneger@site.com', 'Новый заказ', $html,$headers);