Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/05/2013, 11:50
Avatar de Briss
Briss
 
Fecha de Ingreso: junio-2011
Mensajes: 1.293
Antigüedad: 12 años, 10 meses
Puntos: 12
Respuesta: Por que no funciona mi form????

Cita:
Iniciado por pateketrueke Ver Mensaje
Adivinar exactamente dónde colocas la condición que no te funciona es imposible.

Sería mas inteligente de tu parte mostrar el código real, es más útil.
la agrego al incio queda asi
require_once('../Connections/connection.php');


Código PHP:
require("../phpmailer/class.phpmailer.php");
if (
$_POST['action'] == "send") {
    
$varname $_FILES['archivo']['name'];
    
$vartemp $_FILES['archivo']['tmp_name'];
$mail = new PHPMailer();
$mail->Host "localhost";
$mail->From "[email protected]";
$mail->FromName "Listas";
$mail->Subject "prueba";
if(!empty(
$_POST['email'])) {  
$aLista=$_POST['email'];  
mysql_select_db($database_connection$connection);
$result"SELECT * FROM informesp where Folio IN (".implode(',',$aLista).")";  
$rs1mysql_query($result$connection) or die(mysql_error());
 if(
mysql_num_rows($rs1)>0)  

  
 while (
$row mysql_fetch_array($rs1)) {
    { 
 
// HTML body 
    
$body "Hola <strong>".$row["Nombre"]."</strong>, "
    
$body.= $_POST[asunto]; 
    
$body.= "<em>List manager</em>"
    
// Text body
    
$text "Hola ".$row["Nombre"].", \n\n"
    
$text.= $_POST[mensaje];
    
$text.= "List manager";
    
// Configurar Email
    
$mail->Body $body
    
$mail->AltBody $text
    
$mail->AddAddress($row["Email"], $row["Nombre"]);
    
// Enviar el email
    
if(!$mail->Send()) {
        echo 
"Error al enviar a: " $row["Email"] . "<br>"
     }
    
    
$mail->ClearAddresses();  
    }
        }
        }
        }
        
    }