Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/02/2005, 12:57
Avatar de The_omars
The_omars
 
Fecha de Ingreso: marzo-2004
Mensajes: 271
Antigüedad: 22 años, 8 meses
Puntos: 0
error al mandar mail

hola foro tengo un error que no le encuentro:

este es el error:

Problemas enviando correo electrónico a [email protected]
Language string failed to load: from_failedObject

y este es mi script:

Código PHP:

<?
require('includes/class.phpmailer.php');
require(
'includes/class.smtp.php');

$nombre=$_POST['Nombre'];
$telefono=$_POST['Telefono'];
$fax=$_POST['Fax'];
$mail=$_POST['mail'];
$cate=$_POST['categoria'];
$comentarios=$_POST['Comentarios'];

    
$msg="[email protected]";
      
$mail = new PHPMailer();
    
$mail->PluginDir = "includes/";
    
$mail->Mailer = "smtp";
    
$mail->Host = "localhost";
    
$mail->SMTPAuth = true;
    
$mail->From = $mail;
    
$mail->FromName = $nombre;
    
$mail->Timeout=45;
    
$mail->AddAddress($msg);
    
$mail->Subject = "information";
    
$mail->Body = " Nombre: ".$nombre."<br> Apellido Paterno: ".$telefono."<br> E mail: ".$mail."<br> Telefono: ".$fax;
    
$mail->AltBody = " Formulario";
    
$exito = $mail->Send();
    
$intentos=1; 
    while ((!
$exito) && ($intentos < 5))                 
    {
sleep(5);
        
$exito = $mail->Send();
         
$intentos=$intentos+1;    
    }
    if(!
$exito)
    {
     echo 
"Problemas enviando correo electrónico a ".$msg;
     echo 
"<br/>".$mail->ErrorInfo;    
    }
    else
    {
     }
?>