Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/01/2015, 03:23
mblascog
 
Fecha de Ingreso: enero-2002
Ubicación: Sabadell
Mensajes: 565
Antigüedad: 22 años, 4 meses
Puntos: 4
Error con PHPMailer

Buenas,
Me estoy peleando con PHPMailer y no lo soluciono. Haga lo que haga me da el siguiente error:

SMTP Error: The following recipients failed: [email protected]


El código php es este:

Código PHP:
Ver original
  1. include ("/class/class.phpmailer.php");
  2.     $mailPrto = new PHPMailer(true); //defaults to using php "mail()"; the true param means it will throw exceptions on errors, which we need to catch
  3.     try {
  4.         $mailPrto->SMTPDebug = true;
  5.         $mailPrto->IsSMTP();
  6.         $mailPrto->SMTPAuth = true;
  7.  
  8.         $mailPrto->Host = "smtp.xxx.es";
  9.         $mailPrto->Port = 25;
  10.         $mailPrto->Username = "xxx";
  11.         $mailPrto->Password = "xxx";
  12.         $mailPrto->From = "xxx";
  13.         $mailPrto->AddReplyTo = $correo;
  14.         $mailPrto->FromName = $nombre;
  15.         $mailPrto->AddAddress(xxx, 'web'); //para
  16.         $mailPrto->SetFrom(aaa, 'mensaje'); //de
  17.         $mailPrto->CharSet = 'UTF-8';
  18.         $mailPrto->Subject = "asunto";
  19.         $mailPrto->AltBody = 'bla bla bla'; // texto alternativo
  20.         $mailPrto->IsHTML(true);                                  // Activamos el formato HTML
  21.         $mailPrto->MsgHTML($message);
  22.         $mailPrto->Send();
  23.     } catch (phpmailerException $e) {
  24.     echo $strMsgFrmErr[$idioma].' '.$e->errorMessage(); //Pretty error messages from PHPMailer
  25.     } catch (Exception $e) {
  26.     echo $strMsgFrmErr[$idioma].' '.$e->getMessage(); //Boring error messages from anything else!
  27.     }


He activado el debug y sale lo siguiente. Entiendo poco, pero al menos tengo claro que la autenticación es correcta.

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 smtp-03.servidoresdns.net ESMTP Postfix "
SMTP -> get_lines(): $data is "220 smtp-03.servidoresdns.net ESMTP Postfix "
SMTP -> FROM SERVER:220 smtp-03.servidoresdns.net ESMTP Postfix
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-llsa735-a03.servidoresdns.net "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net "
SMTP -> get_lines(): $data was "250-llsa735-a03.servidoresdns.net "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net 250-PIPELINING "
SMTP -> get_lines(): $data was "250-llsa735-a03.servidoresdns.net 250-PIPELINING "
SMTP -> get_lines(): $str is "250-SIZE 51200000 "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 "
SMTP -> get_lines(): $data was "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 "
SMTP -> get_lines(): $str is "250-ETRN "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN "
SMTP -> get_lines(): $data was "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN "
SMTP -> get_lines(): $str is "250-STARTTLS "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS "
SMTP -> get_lines(): $data was "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS "
SMTP -> get_lines(): $str is "250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN "
SMTP -> get_lines(): $data was "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN "
SMTP -> get_lines(): $str is "250-AUTH=PLAIN DIGEST-MD5 CRAM-MD5 LOGIN "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-AUTH=PLAIN DIGEST-MD5 CRAM-MD5 LOGIN "
SMTP -> get_lines(): $data was "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-AUTH=PLAIN DIGEST-MD5 CRAM-MD5 LOGIN "
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-AUTH=PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $data was "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-AUTH=PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $str is "250 8BITMIME "
SMTP -> get_lines(): $data is "250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-AUTH=PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-ENHANCEDSTATUSCODES 250 8BITMIME "
SMTP -> FROM SERVER: 250-llsa735-a03.servidoresdns.net 250-PIPELINING 250-SIZE 51200000 250-ETRN 250-STARTTLS 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-AUTH=PLAIN DIGEST-MD5 CRAM-MD5 LOGIN 250-ENHANCEDSTATUSCODES 250 8BITMIME
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 2.7.0 Authentication successful "
SMTP -> get_lines(): $data is "235 2.7.0 Authentication successful "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.0 Ok "
SMTP -> get_lines(): $data is "250 2.1.0 Ok "
SMTP -> FROM SERVER:250 2.1.0 Ok
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "553 5.7.1 : Sender address rejected: not owned by user [email protected] "
SMTP -> get_lines(): $data is "553 5.7.1 : Sender address rejected: not owned by user [email protected] "
SMTP -> FROM SERVER:553 5.7.1 : Sender address rejected: not owned by user [email protected]
SMTP -> ERROR: RCPT not accepted from server: 553 5.7.1 : Sender address rejected: not owned by user [email protected]

Alguna sugerencia?
Gracias
__________________
Qué fácil cuando lo sabes y qué difícil cuando no