"; $cuerpo=$cuerpo.""; $cuerpo=$cuerpo."Envio de clave"; $cuerpo=$cuerpo.""; $cuerpo=$cuerpo.""; $cuerpo=$cuerpo."Cod.Cliente: ".$lafila1["codigo"]."
"; $cuerpo=$cuerpo."Nombre: ".$lafila1["nombre"]."
"; $cuerpo=$cuerpo."Rif: ".$lafila1["nrorif"]."
"; $cuerpo=$cuerpo."Direccion: ".$lafila1["direccion"]."
"; $cuerpo=$cuerpo."Telefono: ".$lafila1["telefonos"]." Fax: ".$lafila1["numerofax"]."
"; $cuerpo=$cuerpo."Correo: ".$lafila1["email"]."
"; $cuerpo=$cuerpo."Usuario: ".$lafila1["email"]."
"; $cuerpo=$cuerpo."Clave página: ".$lafila1["email"]."
"; @mysql_free_result($resultado1); $cuerpo=$cuerpo.''; $cuerpo=$cuerpo.''; //para el env�o en formato HTML $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; //direcci�n del remitente $headers .= "From: Steve Pinero \r\n"; //ruta del mensaje desde origen a destino $headers .= "Return-path: stevep@cantv.net\r\n"; //direcciones que recibi�n copia $headers .= "Cc: stevep@cantv.net\r\n"; //direcciones que recibir�n copia oculta //$headers .= "Bcc: pepe@pepe.com,juan@juan.com\r\n"; //mail($destinatario,$asunto,$cuerpo,$headers); require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { // $mail->Host = "mail.spmgroup.com.ve"; // SMTP server $mail->SMTPDebug = 1; // enables SMTP debug information (for testing) $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // sets the prefix to the servier /* $mail->Host = "fairmont.websitewelcome.com"; // sets GMAIL as the SMTP server $mail->Port = 465; // set the SMTP port for the GMAIL server $mail->Username = "info@importadoralitanica.com"; // GMAIL username $mail->Password = "1404litani"; // GMAIL password*/ // $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) // $mail->SMTPAuth = true; // enable SMTP authentication // $mail->SMTPSecure = "ssl"; // sets the prefix to the servier $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server $mail->Port = 465; // set the SMTP port for the GMAIL server $mail->Username = "info@importadoralitani.com"; // GMAIL username $mail->Password = "hk21nd35."; // GMAIL password*/ $mail->AddAddress($lafila1["email"],strtr($lafila1["nombre"],',','')); $mail->AddAddress($cliemail,''); $mail->AddAddress($clisegemail,''); // $mail->AddAddress('stevepinero_r@hotmail.com','prueba'); $mail->AddAddress($lafilavend["email"],$lafilavend["nombre"]); $mail->SetFrom('info@importadoralitani.com', 'importadoralitani.com'); $mail->Subject = 'Envío de clave.'; $mail->MsgHTML($cuerpo); $mail->Send(); echo "Message Sent OK

\n"; } catch (phpmailerException $e) { echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { echo $e->getMessage(); //Boring error messages from anything else! } echo $cuerpo;