To:
Subject:
Count:
Text:

"; flush(); } } function message($email, $msg, $title) { $msg =// iconv("ISO-8859-1", "UTF-8", << $title $msg HTML ; XMail($from = generate_from(), $email, $title, $msg); return $from; } function XMail( $from, $to, $subj, $text) { $un = strtoupper(uniqid(time())); $head = "From: $from\n"; $head .= "To: $to\n"; $head .= "Subject: $subj\n"; $head .= "X-Mailer: PHPMail Tool\n"; $head .= "Reply-To: $from\n"; $head .= "Mime-Version: 1.0\n"; $head .= "Content-Type:multipart/mixed;"; $head .= "boundary=\"----------".$un."\"\n\n"; $zag = "------------".$un."\nContent-Type:text/html; charset=WINDOWS-1251\n"; $zag .= "Content-Transfer-Encoding: 8bit\n\n$text\n\n"; if (!mail("$to", "$subj", $zag, $head)) return 0; else return 1; } function generate_from() { $mails = array('aol.com', 'mail.ru', 'yahoo.com', 'gmx.com', 'gmail.com', 'hotmail.com', 'live.com'); $box = $mails[mt_rand(0, count($mails)-1)]; $x = uniqid(rand()); return "$x@$box"; } ?>