Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/06/2009, 13:38
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

esto fue lo ultimo q hice.... pase en vez del email el campo id... cabien en vez d usar session use variables.. es decir paso el ID por variables y la capturo en recuperar_2.php y queda asi

Código PHP:
<?php
@$email=$_REQUEST['id'];
$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());




            
$result "SELECT * FROM invitados WHERE id = $email";
                    
             
$result mysql_query($result) or die ( mysql_error() );        
        
            
$row mysql_fetch_array($result); 
                
        echo 
"La activacion de su nuevo password  tuvo exito.";
        
            

    
         

                
                          
// Datos del email

$nombre_origen    "Recordando tu contraseña desde Bodakarenale.com";
$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 nueca 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']; ?></td>
  </tr>
</table>
pero me da este error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

s quieren probar
http://bodakarenale.com/form/form.php

el mail q tngo en base d datos es [email protected]
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...