Foros del Web » Programando para Internet » PHP »

[SOLUCIONADO] Envio raro con PHPMailer

Estas en el tema de Envio raro con PHPMailer en el foro de PHP en Foros del Web. Código PHP: <?php      //require_once('PHPMailer-master/class.phpmailer.php');      require_once( 'PHPMailer-master/PHPMailerAutoload.php' );      $correo  = new  PHPMailer ();      $correo -> IsSMTP ();      $correo -> SMTPAuth  =  true ...
  #1 (permalink)  
Antiguo 08/04/2016, 08:26
 
Fecha de Ingreso: enero-2008
Mensajes: 580
Antigüedad: 16 años, 3 meses
Puntos: 9
Envio raro con PHPMailer

Código PHP:
<?php
    
//require_once('PHPMailer-master/class.phpmailer.php');
    
require_once('PHPMailer-master/PHPMailerAutoload.php');
    
$correo = new PHPMailer();

    
$correo->IsSMTP();
    
$correo->SMTPAuth true;
    
$correo->SMTPSecure 'tls';
    
$correo->Host "smtp.gmail.com";
    
$correo->Port 587;
    
$correo->Username    '****@gmail.com';
    
$correo->Password    '****';
    
$correo->SetFrom($_POST['email'],$_POST['nombre']);
    
$correo->AddReplyTo($_POST['email'],$_POST['nombre']);
    
$correo->AddAddress("[email protected]""Jorge");
    
$correo->Subject "Mi primero correo con PHPMailer";
    
$correo->MsgHTML("Mi Mensaje en <strong>HTML</strong>");
    
    if(!
$correo->Send()) {
        echo 
"Hubo un error: " $correo->ErrorInfo;
    } else {
        echo 
"Mensaje enviado con exito.";
    }
?>
Cita:
Delivery to the following recipient failed permanently:

[email protected]

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain correo.com by mx.correo.com. [109.234.208.5].

The error that the other server returned was:
550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in relay recipient table


----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=from:date:to:subject:message-id:mime-version
:content-transfer-encoding;
bh=zNW5gy496BSfN5PsB3ifsS5BI3GIuufdmCHCGyTvexE=;
b=Ro4oBimwbAdbylULJtMClLRbAJB2yrWR59kHEWFtSjeVls1Q HAICRdSd8X+gBr6EnZ
t8THAXWoHE3Dw3HpN1WL+P9eoxXx+ru0I+b+KcVol1FjhNmkA/6cS+sB1zRMScKwBKVX
Yd/JGzWLunsjaXgbCZMSSY1XX+ZkhtztiXjK/SdUqiT171HkA7eNHQOPGH2wrHK+yNcW
BZwvRsyi+Pbq3UZAlWbJlnZBvelVRHzkvuifH323qCMalJ5Kvg 08rJKab8ye3fOEu/FE
N5wp/WrZSKIQuJEv+SMyhGTHF3JGMAQAwwwIO+r4lUJwlXtlSPeIKcX waESeldwXRIKb
PtBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:from:date:to:subject:message-id:mime-version
:content-transfer-encoding;
bh=zNW5gy496BSfN5PsB3ifsS5BI3GIuufdmCHCGyTvexE=;
b=geDNt+NnxRZ96EQLVQ+7In5P1kkDEafXKGZ9BopPeBaP9Mg1 asAmUlyZ/fj2EbjgXZ
Y80qXkr2aFcB1/p2nr/5zYbaKxB7c4ppGRiCbOPzNSJIjQxi676zP5bNcLX4IPHrkpDe
B10VDw0mAf+foRnCgaJ03G+IKnH8K9FkjQu/gxnIMIRQwPiABmn1m/UL97h/RAAd2pvi
4SNQgWrAZ9djnPmOUuLAgPhaWmQKulYBu33Ea1JAx73AgMOWb6 JiW/7HJnZUKQZ2Ztdv
mf/HhcDKepXikZZJGr9kuKAw4NBLz17RLKLylcGXChNEQjwLgQvxe xMjOqa2L5RfFKx6
LLRA==
X-Gm-Message-State: AD7BkJIaE8t43fSp1box5c4ryjegOOhru4ESflxTj0QzyTZQK6 vUhrGsJenzyOrH8e33Zg==
X-Received: by 10.194.135.6 with SMTP id po6mr6966043wjb.70.1460125490908;
Fri, 08 Apr 2016 07:24:50 -0700 (PDT)
Return-Path: <[email protected]>
Received: from viajandoporelmundo.esy.es ([31.170.165.183])
by smtp.gmail.com with ESMTPSA id c190sm3306170wmd.10.2016.04.08.07.24.50
for <[email protected]>
(version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Fri, 08 Apr 2016 07:24:50 -0700 (PDT)
From: Root User <[email protected]>
X-Google-Original-From: Root User <root@localhost>
Date: Fri, 8 Apr 2016 14:24:48 +0000
To: Jorge <[email protected]>
Subject: Mi primero correo con PHPMailer
Message-ID: <6690e15105629f2600f42b6641b78df0@viajandoporelmun do.esy.es>
X-Mailer: PHPMailer 5.2.14 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_6690e15105629f2600f42b6641b78df0"
Content-Transfer-Encoding: 8bit

Mi Mensaje en HTML
  #2 (permalink)  
Antiguo 08/04/2016, 08:29
 
Fecha de Ingreso: enero-2008
Mensajes: 580
Antigüedad: 16 años, 3 meses
Puntos: 9
Respuesta: Envio raro con PHPMailer

Era esto: $correo->AddAddress

Etiquetas: html, phpmailer, raro
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:01.