<?$i=$_POST['nameFF'];$t=$_POST['contactFF'];if(isset($_POST['contactFF'])){$fromEmail=$adminEmail='diplom07@mail.ru';
$adminLogin='Администратор';
$siteName=$_SERVER['HTTP_HOST'];
$userIp=$_SERVER['REMOTE_ADDR'];include'mail3.php';
$subject="Заполнена контактная форма с ".$_SERVER['HTTP_REFERER'];
$from=$_POST['contactFF'];
$msg="Имя заказчика: $i \n<p>Его телефон или E-mail: $t";
$test=new attach_mailer($name="",$from=$fromEmail,$to=$adminEmail,$cc="",$bcc="",$subject,$body=$msg);if(!empty($_FILES)){
$size=0;foreach($_FILES['fileFF']['tmp_name']as$key=>$file){$size+=(int)$_FILES['fileFF']['size'][$key];$test->create_attachment_part($_FILES['fileFF']['tmp_name'][$key],$_FILES['fileFF']['name'][$key]);
}}$test->process_mail();header("location:http://001.testfond.ru/isteriki/t.php");
}
?>