<?php
$testa = $_POST['veio'];
if($testa != "") {
	$message = $_POST['html'];
	$subject = $_POST['assunto'];
	$to = $_POST['emails'];



       $i = 0;
	$count = 1;


          $email = explode("\n", $to);
	
	

	
	         while($email[$i]) {
                 $dataHora = date("d/m/Y h:i:s");



		
                 $EmailTemporario = $email[$i];
                 $message = stripslashes($message);
	         $headers  = "MIME-Version: 1.0\r\n";
	         $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
	         $headers .= "From: ".$nome." <".$EmailTemporario.">\r\n";
  

		 mail($EmailTemporario, $subject."      ".$dataHora, $message.$dataHora, $headers);
		  
                $i++;
		$count++;

	}


	$count--;
	 

}

?>
<html>
<head>
<title>Envio 2013</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
body {
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
	margin-bottom: 0;
}
.titulo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 70px;
	color: #000000;
	font-weight: bold;
}

.normal {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
}

.form {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #000000;
	background-color: #0000FF;
	border: 1px dashed #666666;
}

.texto {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
}

.alerta {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #990000;
	font-size: 10px;
}
.normal tr td {
	font-family: Arial Black, Gadget, sans-serif;
}
</style>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="form1">
  <input type="hidden" name="veio" value="sim">
  <table width="464" height="511" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="normal">
    <tr>
      <td width="462" height="25" align="center" bgcolor="#000000">
		<font color="#00FF00">Nova 2013</font></td>
    </tr>
    <tr>
      <td height="194" valign="top" bgcolor="#666666">
	  	<table width="100%"  border="0" cellpadding="0" cellspacing="5" class="normal" height="444">
		  <tr>
            
            
            <td align="right" height="17"><span class="texto">Assunto:</span></td>
            <td height="17">
			<span style="background-color: #000000">
			<input name="assunto" type="text" value="                                                                        "class="form" id="assunto" style="width:100%; font-family:Verdana; font-size:10pt; font-weight:bold" size="15" ></span></td>
          </tr>
          <tr align="center" bgcolor="#99CCFF">
            <td height="20" colspan="2" bgcolor="#000000"><font color="#00FF00"><span class="texto">
			Código HTML:</span></font></td>
          </tr>
          <tr align="right">
            <td height="146" colspan="2" valign="top" bgcolor="#000000"><br>
             <span style="background-color: #000000">
			<font size="2" face="Verdana">
             <textarea name="html" style="width:100%; font-weight:bold; font-family:Verdana; font-size:10pt" rows="8" wrap="VIRTUAL" class="form" id="html" cols="1">




</textarea></font></span><font color="#00FF00"> </font>


              <span class="alerta"><font color="#00FF00">*Lembrete: texto em 
			HTML</font></span></td>



          </tr>
          <tr align="center" bgcolor="#99CCFF">
            <td height="47" colspan="2" bgcolor="#000000"><font color="#00FF00"><span class="texto">
			Coloque o email de suas vitimas abaixo: </span>
              </font>
              <p><font color="#00FF00"><span class="texto">OBS: um e-mail em 
				cima do outro </span></font></td>
          </tr>
          <tr align="right">
            <td height="136" colspan="2" valign="top" bgcolor="#000000"><br>
              <textarea name="emails" style="width:100%; font-family:Verdana; font-size:10pt; font-weight:bold" rows="8" wrap="VIRTUAL" class="form" id="emails" cols="1">
</textarea><font color="#00FF00"> </font>
              <span class="alerta"><font color="#00FF00">*Separado por quebra de 
			linha</font></span><font color="#00FF00"> </font> </td>
          </tr>
          <tr>
            <td height="26" align="right" valign="top" colspan="2"><input type="submit" name="Submit" value="Enviar"></td>
          </tr>
        </table>
	  </td>
    </tr>
    <tr>
      <td height="15" align="center" bgcolor="#000000"><font color="#00FF00">&nbsp;</font></td>
    </tr>
  </table>
</form>