Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/11/2012, 12:52
cartamaestacion
 
Fecha de Ingreso: noviembre-2012
Mensajes: 1
Antigüedad: 12 años, 3 meses
Puntos: 0
Información Error de envio de mail

Hola gente:
Estoy intentando, una vez enviado un mensaje de un formulario, enviar mail via gmail, pero me tira el siguiente error:

Error: Language string failed to load: from_failed: [email protected]

Mi Código:

Código PHP:
Ver original
  1. <?php
  2. require_once 'class.phpmailer.php';
  3.  
  4.     $mail = new PHPMailer ();
  5.    
  6.     $mail->IsSMTP();
  7.     $mail->SMTPSecure = "ssl";
  8.     $mail->Host = "smtp.gmail.com";
  9.     $mail->Port = 465;
  10.    
  11.     $mail->SMTPAuth = true;
  12.     $mail->Username = '[email protected]';
  13.     $mail->Password = 'xxxxxxx';
  14.    
  15.     $mail -> From = "[email protected]";
  16.     $mail -> FromName = "xxxxx";
  17.    
  18.     $mail -> AddBCC ('[email protected]');
  19.    
  20.      $content = str_replace('\"','"',$content);    
  21.      
  22.      $mail -> AddBCC ('[email protected]');
  23.      
  24.        $mail -> IsHTML (true);
  25.    
  26.     $mail -> Subject = $asunto;
  27.  
  28.     $mail->Body = $content;
  29.  
  30. if(!$mail->Send()) {
  31.         echo 'Error: ' . $mail->ErrorInfo; echo '<br/>No se pudo enviar el correo.       <br/>';
  32.     }
  33.     else {
  34.         echo "<b>El siguiente Newsletters fue enviado a los usuarios    registrados</b><br>";
  35.         echo $content;
  36.         echo "<br><br>";
  37.         include "pie1.php";
  38.         die;
  39.     }
  40. ?>
  41.  
  42. <form action="news_nm.php" method="POST">
  43.  
  44. <br><br><b>Asunto</b>&nbsp;&nbsp; <input type='text' name='asunto' size='70' maxlength='100' value='<?echo $asunto?>'><br><br>
  45.  
  46. <br />
  47. <br />
  48. <input type="submit" name="b_aceptar" value="Enviar Newsletters">
  49. </form>

Estoy intentando por el lado del lenguaje, pero no sé cómo arreglarlo ¿Alguien podría decirme, cómo solucionarlo?
Muchas gracias