Ver Mensaje Individual
  #9 (permalink)  
Antiguo 16/06/2009, 14:28
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Respuesta: S.O.S - Recuperar contraseña no envia mail

sin el @ funciona a la perfeccion :D

gracias a los dos por su tiempo!!!!
saludos!!!

Código PHP:
<?php
@$email=$_REQUEST['email'];
$conexion=mysql_connect('localhost','bodakare_adminka','alekaren09')or die ('Ha fallado la conexión: '.mysql_error());
mysql_select_db('bodakare_boda')or die ('Error al seleccionar la Base de Datos: '.mysql_error());




            
$sql "SELECT * FROM invitados WHERE id = $email";
                    
             
$sql_exec mysql_query($sql) or die("Error en consulta: $sql_exec, error: "mysql_error());
        
            
$row mysql_fetch_array($sql_exec); 
                
        echo 
"La activacion de su nuevo password  tuvo exito.";
        
            

    
         

                
                          
// Datos del email

$nombre_origen    "Hola";
$email_origen     "[email protected]";
$email_copia      "[email protected]";
$email_ocultos    "[email protected]";
//$email_destino    = "".$row['email']."";  
$email_destino    "[email protected]";  //cambiar esta linea por la de encima cuando se termine la aplicacion para pruebas pon tu email


$asunto           "Activacion de nueva contraseña, guarde este email.";

$mensaje          '<table width="629" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td width="623" align="left"></td>
  </tr>
  <tr>
    <td bgcolor="#2EA354"><div style="color:#FFFFFF; font-size:14; font-family: Arial, Helvetica, sans-serif; text-transform: capitalize; font-weight: bold;"><strong>     Estos son sus datos  '
.$row['usuario'].'</strong></div></td>
  </tr>
  <tr>
    <td height="95" align="left" valign="top"><div style=" color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; margin-bottom:3px;"> USUARIO: '
.$row['usuario'].'</strong><br><br><br>
          
          <strong>SU EMAIL : </strong>'
.$row['email'].'</strong><br><br><br>
          <strong>REACTIVO SU NUEVA CONTRASEÑA SIN NINGUN INCIDENTE.</strong><br><br>
          <strong>GRACIAS POR INGRESAR.</strong><br>
          <strong>PRONTO ACTUALIZAREMOS CONTENIDOS.</strong><br>
    </div>
    </td>
  </tr>
</table>'
;

                


$formato          "html";

//*****************************************************************//
$headers  "From: $nombre_origen <$email_origen> \r\n";
$headers .= "Return-Path: <$email_origen> \r\n";
$headers .= "Reply-To: $email_origen \r\n";
$headers .= "X-Sender: $email_origen \r\n";
$headers .= "X-Priority: 3 \r\n";
$headers .= "MIME-Version: 1.0 \r\n";
$headers .= "Content-Transfer-Encoding: 7bit \r\n";

//*****************************************************************//
 
if($formato == "html")
 { 
$headers .= "Content-Type: text/html; charset=iso-8859-1 \r\n";  }
   else
    { 
$headers .= "Content-Type: text/plain; charset=iso-8859-1 \r\n";  }

if (
mail($email_destino$asunto$mensaje$headers)) 
    { } 
?>

<table width="500" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><?php echo $row['id']; ?> - <?php echo $row['usuario']; ?> - <?php echo $row['pass']; ?></td>
  </tr>
</table>
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...