Underc0de

Programación Web => Back-end => Mensaje iniciado por: Devilboy en Mayo 19, 2011, 05:10:33 PM

Título: Mailer by Devilboy
Publicado por: Devilboy en Mayo 19, 2011, 05:10:33 PM
Uno ke hice hace ya tiempo muyyy sencillito

<?php

$correo
=$_POST[correo];
$asunto=$_POST[asunto];
$nombre=$_POST[nombre];
$mensaje=$_POST[mensaje];
$mensaje2 stripslashes($mensaje);
$correos nl2br($_POST['correos']);
$correos2=$_POST['correos'];

?>



<title>Mailer by Devilboy</title>
<body bgcolor="#000000" >
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  <p>&nbsp;</p>
  <table width="75%" height="250" border="1" align="center" background="http://3.bp.blogspot.com/_YmrRm70asRg/S9SWah8WRoI/AAAAAAAAACk/VF9eTjeS8Ec/s1600/wallpapers3dartvialien.jpg">
    <tr>
      <td><div align="center">
          <table width="95%" height="455" border="0">
            <tr>
              <td colspan="4"><div align="center">
                  <p><strong><font color="#FFFFFF">Mailer by Devilboy</font></strong></p>
                  <p>&nbsp;</p>
                </div></td>
            </tr>
            <tr>
              <td height="64"><strong><font color="#FFFFFF">Tu Correo: </font></strong></td>
              <td><strong><font color="#FFFFFF">
                <input name="correo" type="text" id="correo" size="30" value="<?php echo($correo); ?>">
                </font></strong></td>
              <td><strong><font color="#FFFFFF">Tu Nombre: </font></strong></td>
              <td><strong><font color="#FFFFFF">
                <input name="nombre" type="text" id="nombre" size="30" value="<?php echo($nombre); ?>">
                </font></strong></td>
            </tr>
            <tr>
              <td><strong><font color="#FFFFFF">Asunto:</font></strong></td>
              <td><input name="asunto" type="text" id="asunto" size="30" value="<?php echo($asunto); ?>"></td>
              <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
              <td width="49%" height="32" colspan="2"><div align="center">
                  <p>&nbsp;</p>
                  <p><strong><font color="#FFFFFF">Mensaje</font></strong></p>
                </div></td>
              <td width="51%" colspan="2"><div align="center">
                  <p>&nbsp;</p>
                  <p><strong><font color="#FFFFFF">Correos</font></strong></p>
                </div></td>
            </tr>
            <tr>
              <td colspan="2"><div align="center">
                  <textarea name="mensaje" cols="40" rows="15" id="mensaje"><?php echo($mensaje2); ?></textarea>
                </div></td>
              <td colspan="2"><div align="center">
                  <textarea name="correos" cols="40" rows="15" id="correos"><?php echo($correos2); ?></textarea>
                </div></td>
            </tr>
          </table>
          <strong></strong></div></td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <p align="center">
    <input type="submit" name="Submit" value="  OwNeAr  "/>
  </p>
  <p>&nbsp;</p>
</form>





<?php




//*****html****************************
  
$headers .= "MIME-Version: 1.0\n"
$headers .= "Content-type: text/html; charset=iso-8859-1\n"
$headers .= "From: ".$nombre " <" $correo ">\n"
$headers .= "To: ".$nombre " <" $correo ">\n";
$headers .= "X-Priority: 1\n"
$headers .= "X-MSMail-Priority: High\n"
$headers .= "X-Mailer: Widgets.com Server"
//*************************************





$lineas explode  '<br />'  $correos );

foreach (
$lineas as $indice => $valor) {
    
$count=$indice+1;
   if(
$valor!=""){


        


  if(
mail($valor,$asunto,$mensaje2,$headers)){
   
   
     
   
   echo(
'<font color="#FFFFFF">'.$count.') '.$valor."....Spameado</font><br/>");
   }else{
    
    echo(
'<font color="#FFFFFF">No se Enviò desde el correo: '.$valor.'<br/>');
    break;
    
    
   }
   }
   
}  



?>