Que tal,
tenemos un error con el boton de Recuperar contraseña, se queda pensando y luego de un timeout deja la pagina sin cambios. El log indica un error de smtp que no sabemos como solucionarlo.
El sistema es g3w3 version3.15 sin personalizar.
De acuerdo al log (/usr/local/proyectos/g3w3/instalacion/log/des01) tenemos:
================================================================================
================================= ERRORES ==================================
clase: SIU\Chulupi\ErrorKernel
mensaje: SMTP Error: The following recipients failed: usuario@gmail.com : Command rejected
traza: [TRAZA]
—[ 0 ]-----------------------------------------
function: SIU\Chulupi\util\mail->enviar
file: /usr/local/proyectos/g3w3/vendor/siu/chulupi-framework/src/SIU/Chulupi/util/mail.php, linea 136
—[ 1 ]-----------------------------------------
function: siu\operaciones\acceso\controlador->enviar_mail_recuperar_pass
file: /usr/local/proyectos/g3w3/src/siu/operaciones/acceso/controlador.php, linea 148
param:
0: usuario@gmail.com 1: 3cbf7c5ef711cc3b89f23995ca013a4e3409db04 2: 2472
—[ 2 ]-----------------------------------------
function: siu\operaciones\acceso\controlador->accion__recuperar
file: /usr/local/proyectos/g3w3/vendor/siu/chulupi-framework/src/SIU/Chulupi/nucleo/controlador.php, linea 422
—[ 3 ]-----------------------------------------
function: SIU\Chulupi\nucleo\controlador->invocar_accion
file: /usr/local/proyectos/g3w3/vendor/siu/chulupi-framework/src/SIU/Chulupi/nucleo/controlador.php, linea 154
param:
0: recuperar
—[ 4 ]-----------------------------------------
function: SIU\Chulupi\nucleo\controlador->procesar_accion
file: /usr/local/proyectos/g3w3/src/siu/extension_kernel/controlador_g3w2.php, linea 95
—[ 5 ]-----------------------------------------
function: siu\extension_kernel\controlador_g3w2->procesar_accion
file: /usr/local/proyectos/g3w3/vendor/siu/chulupi-framework/src/SIU/Chulupi/nucleo/AccesoWeb.php, linea 108
—[ 6 ]-----------------------------------------
function: SIU\Chulupi\nucleo\AccesoWeb::procesar_request
file: /usr/local/proyectos/g3w3/vendor/siu/chulupi-framework/src/SIU/Chulupi/nucleo/AccesoWeb.php, linea 26
—[ 7 ]-----------------------------------------
function: SIU\Chulupi\nucleo\AccesoWeb::procesar
file: /usr/local/proyectos/g3w3/src/siu/www/index.php, linea 15
########################################################################################################################
================================================================================
================================= WARNINGS =================================
NOTICE
Archivo: /usr/local/proyectos/g3w3/src/siu/operaciones/acceso/controlador.php
Linea: 174
Undefined index: exp_regular_validacion
NOTICE
Archivo: /usr/local/proyectos/g3w3/src/siu/operaciones/acceso/controlador.php
Linea: 175
Undefined index: exp_regular_mensaje
NOTICE
Archivo: /usr/local/proyectos/g3w3/vendor/siu/chulupi-framework/src/SIU/Chulupi/nucleo/controlador.php
Linea: 391
Undefined index: mensajes
–F<1>:E<1>:W<3>:T<0 s>:M<0 Mb>–
== FIN =============================================
lleonardis
(Leonardis, Leonel Eduardo)
11 Febrero, 2019 12:55
2
Gracias por responder,
el mail lo cambie a proposito para publicar en el foro, en realidad es un mail que si existe.
Cordialmente
Andres
lleonardis
(Leonardis, Leonel Eduardo)
12 Febrero, 2019 18:09
4
Hola Andrés, perdón, no me había percatado que era un email de reemplazo!!!
Posibles soluciones:
php, smtp, phpmailer
Dice:
Maybe your class.phpmailer.php file is corrupt. Download the latest version from : GitHub - PHPMailer/PHPMailer: The classic email sending library for PHP
Solución: Borrar la carpeta
vendor , y luego volvé a correr el comando
composer install .
Solución: Fíjate que el usuario/clave estén bien en instalacion/config.php , firewall, Acceso de aplicaciones poco seguras , etc.
Revisa estos otros posts:
abierto 03:41PM - 08 Jan 18 UTC
cerrado 06:01PM - 08 Jan 18 UTC
# Problem description
I'm still new this, so please pardon my lack of knowledge… of PHP/phpmailer. I'm able to send a **outbound** email from my local machine, however, when I placed the code on the test server, I receive a "relay access denied". My original code used port '25' with SMTPSecure = 'none' which worked fine on my local machine. I've tried using SMTPSecure= 'tls' with port 587 and 'ssl' with port = '465' but both resulting in "Connection timeout (110)". The test server is hosted by AWS. Another issue is "WatchGaurd" showing up on the debug output, only when using port '25' and SMTPSecure = 'none'. If someone could point me in the right direction it would be much appreciated.
# Code to reproduce
$email = $_SESSION['Account']['Email'];
$emailContact = $_SESSION['Account']['Contact Name'];
$BodyConfirmation = 'Thank you for your order!';
$mail = new PHPMailer();
$mail->SMTPDebug = 3; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtpmail.propath.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = false; // Enable SMTP authentication
$mail->Username = 'myUserName'; // SMTP username
$mail->Password = 'myPassword'; // SMTP password
$mail->SMTPSecure = 'none'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 25; // TCP port to connect to
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => false
)
);
$mail->setFrom('DoNotReply@propath.com', 'DoNotReply');
$mail->addAddress($email, $emailContact ); // Add a recipient
//Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = $subject;
$mail->Body = $BodyConfirmation
if(!$mail->Send()){
echo "Mailer Error: " . $mail->ErrorInfo;
}
else{
echo "Message has been sent";
}
# Debug output
2018-01-08 14:50:54 Connection: opening to smtpmail.propath.com:25, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => false, ),)
2018-01-08 14:50:54 Connection: opened
2018-01-08 14:50:54 SERVER -> CLIENT: 220 *****************
2018-01-08 14:50:54 CLIENT -> SERVER: EHLO 52.40.160.248
2018-01-08 14:50:54 SERVER -> CLIENT: 250-watchguard.propath.com250-PIPELINING250-SIZE 131000000250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250 8BITMIME
2018-01-08 14:50:54 CLIENT -> SERVER: STARTTLS
2018-01-08 14:50:54 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2018-01-08 14:50:55 CLIENT -> SERVER: EHLO 1.1.1.100
2018-01-08 14:50:55 SERVER -> CLIENT: 250-watchguard.propath.com250-PIPELINING250-SIZE 131000000250-ETRN250-ENHANCEDSTATUSCODES250 8BITMIME
2018-01-08 14:50:55 CLIENT -> SERVER: MAIL FROM:<DoNotReply@propath.com>
2018-01-08 14:50:55 SERVER -> CLIENT: 250 2.1.0 Ok
2018-01-08 14:50:55 CLIENT -> SERVER: RCPT TO:<myemail@gmail.com>
2018-01-08 14:50:55 SERVER -> CLIENT: 554 5.7.1 <myemail@gmail.com>: Relay access denied
2018-01-08 14:50:55 SMTP ERROR: RCPT TO command failed: 554 5.7.1 <myemail@gmail.com>: Relay access denied
2018-01-08 14:50:55 CLIENT -> SERVER: QUIT
2018-01-08 14:50:55 SERVER -> CLIENT: 221 2.0.0 Bye
2018-01-08 14:50:55 Connection: closed
SMTP Error: The following recipients failed: myemail@gmail.com: <myemail@gmail.com>: Relay access denied
#Debug output (When using port 587)
2018-01-08 15:19:16 Connection: opening to smtpmail.propath.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => false, ),)
2018-01-08 15:21:23 Connection failed. Error #2: stream_socket_client(): unable to connect to smtpmail.propath.com:587 (Connection timed out) [/opt/bitnami/apps/joomla/htdocs/PHPMailer/vendor/phpmailer/phpmailer/src/SMTP.php line 325]
2018-01-08 15:21:23 SMTP ERROR: Failed to connect to server: Connection timed out (110)
#Debug output (When using port 465)
2018-01-08 15:23:01 Connection: opening to ssl://smtpmail.propath.com:465, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => false, ),)
2018-01-08 15:25:08 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtpmail.propath.com:465 (Connection timed out) [/opt/bitnami/apps/joomla/htdocs/PHPMailer/vendor/phpmailer/phpmailer/src/SMTP.php line 325]
2018-01-08 15:25:08 SMTP ERROR: Failed to connect to server: Connection timed out (110)
abierto 07:22AM - 26 Dec 17 UTC
cerrado 10:28AM - 26 Dec 17 UTC
# Problem description
At the point of adding the Reciver PHPMailer shows an err… or.
I Tried different Setups:
Send a Mail from my "justin@justingrah.me" Mail adress to my private g-mail. (This does not work)
Then i tried to send a mail to my "justin@justingrah.me" Mail and CC my private g-mail (Does not work either)
# Code to reproduce
```PHP
$mail = new PHPMailer(true);
try {
//Server settings
$mail->isSMTP();
$mail->SMTPDebug = 4; // Set mailer to use SMTP
$mail->Host = 'mail.justingrah.me';
$mail->Auth = true;
$mail->SMTPSecure = 'tls';
$mail->Username = "justin@justingrah.me";
$mail->Password = '******';
$mail->Port = 587;
//Recipients
$mail->setFrom('justin@justingrah.me', 'Mailer');
$mail->addAddress('grah.justin@gmail.com'); // Add a recipient // Name is optional
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send();
echo 'Message has been sent';
} catch (Exception $e) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
}
```
# Debug output
#### First variant
```
2017-12-26 07:09:44 Connection: opening to mail.justingrah.me:587, timeout=300, options=array()
2017-12-26 07:09:44 Connection: opened
2017-12-26 07:09:44 SMTP INBOUND: "220 mail.justingrah.me"
2017-12-26 07:09:44 SERVER -> CLIENT: 220 mail.justingrah.me
2017-12-26 07:09:44 CLIENT -> SERVER: EHLO justingrah.me
2017-12-26 07:09:44 SMTP INBOUND: "250-mail.justingrah.me"
2017-12-26 07:09:44 SMTP INBOUND: "250-PIPELINING"
2017-12-26 07:09:44 SMTP INBOUND: "250-SIZE 26214400"
2017-12-26 07:09:44 SMTP INBOUND: "250-ETRN"
2017-12-26 07:09:44 SMTP INBOUND: "250-STARTTLS"
2017-12-26 07:09:44 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2017-12-26 07:09:44 SMTP INBOUND: "250-8BITMIME"
2017-12-26 07:09:44 SMTP INBOUND: "250 DSN"
2017-12-26 07:09:44 SERVER -> CLIENT: 250-mail.justingrah.me250-PIPELINING250-SIZE 26214400250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN
2017-12-26 07:09:44 CLIENT -> SERVER: STARTTLS
2017-12-26 07:09:44 SMTP INBOUND: "220 2.0.0 Ready to start TLS"
2017-12-26 07:09:44 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2017-12-26 07:09:45 CLIENT -> SERVER: EHLO justingrah.me
2017-12-26 07:09:45 SMTP INBOUND: "250-mail.justingrah.me"
2017-12-26 07:09:45 SMTP INBOUND: "250-PIPELINING"
2017-12-26 07:09:45 SMTP INBOUND: "250-SIZE 26214400"
2017-12-26 07:09:45 SMTP INBOUND: "250-ETRN"
2017-12-26 07:09:45 SMTP INBOUND: "250-AUTH PLAIN LOGIN"
2017-12-26 07:09:45 SMTP INBOUND: "250-AUTH=PLAIN LOGIN"
2017-12-26 07:09:45 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2017-12-26 07:09:45 SMTP INBOUND: "250-8BITMIME"
2017-12-26 07:09:45 SMTP INBOUND: "250 DSN"
2017-12-26 07:09:45 SERVER -> CLIENT: 250-mail.justingrah.me250-PIPELINING250-SIZE 26214400250-ETRN250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN
2017-12-26 07:09:45 CLIENT -> SERVER: MAIL FROM:<justin@justingrah.me>
2017-12-26 07:09:45 SMTP INBOUND: "250 2.1.0 Ok"
2017-12-26 07:09:45 SERVER -> CLIENT: 250 2.1.0 Ok
2017-12-26 07:09:45 CLIENT -> SERVER: RCPT TO:<grah.justin@gmail.com>
2017-12-26 07:09:45 SMTP INBOUND: "554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied"
2017-12-26 07:09:45 SERVER -> CLIENT: 554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied
2017-12-26 07:09:45 SMTP ERROR: RCPT TO command failed: 554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied
2017-12-26 07:09:45 CLIENT -> SERVER: QUIT
2017-12-26 07:09:45 SMTP INBOUND: "221 2.0.0 Bye"
2017-12-26 07:09:45 SERVER -> CLIENT: 221 2.0.0 Bye
2017-12-26 07:09:45 Connection: closed
SMTP Error: The following recipients failed: grah.justin@gmail.com: <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied
Message could not be sent.Mailer Error: SMTP Error: The following recipients failed: grah.justin@gmail.com: : Client host rejected: Access denied
```
#### Second variant
```
2017-12-26 07:19:16 Connection: opening to mail.justingrah.me:587, timeout=300, options=array()
2017-12-26 07:19:17 Connection: opened
2017-12-26 07:19:17 SMTP INBOUND: "220 mail.justingrah.me"
2017-12-26 07:19:17 SERVER -> CLIENT: 220 mail.justingrah.me
2017-12-26 07:19:17 CLIENT -> SERVER: EHLO justingrah.me
2017-12-26 07:19:17 SMTP INBOUND: "250-mail.justingrah.me"
2017-12-26 07:19:17 SMTP INBOUND: "250-PIPELINING"
2017-12-26 07:19:17 SMTP INBOUND: "250-SIZE 26214400"
2017-12-26 07:19:17 SMTP INBOUND: "250-ETRN"
2017-12-26 07:19:17 SMTP INBOUND: "250-STARTTLS"
2017-12-26 07:19:17 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2017-12-26 07:19:17 SMTP INBOUND: "250-8BITMIME"
2017-12-26 07:19:17 SMTP INBOUND: "250 DSN"
2017-12-26 07:19:17 SERVER -> CLIENT: 250-mail.justingrah.me250-PIPELINING250-SIZE 26214400250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN
2017-12-26 07:19:17 CLIENT -> SERVER: STARTTLS
2017-12-26 07:19:17 SMTP INBOUND: "220 2.0.0 Ready to start TLS"
2017-12-26 07:19:17 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2017-12-26 07:19:17 CLIENT -> SERVER: EHLO justingrah.me
2017-12-26 07:19:17 SMTP INBOUND: "250-mail.justingrah.me"
2017-12-26 07:19:17 SMTP INBOUND: "250-PIPELINING"
2017-12-26 07:19:17 SMTP INBOUND: "250-SIZE 26214400"
2017-12-26 07:19:17 SMTP INBOUND: "250-ETRN"
2017-12-26 07:19:17 SMTP INBOUND: "250-AUTH PLAIN LOGIN"
2017-12-26 07:19:17 SMTP INBOUND: "250-AUTH=PLAIN LOGIN"
2017-12-26 07:19:17 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2017-12-26 07:19:17 SMTP INBOUND: "250-8BITMIME"
2017-12-26 07:19:17 SMTP INBOUND: "250 DSN"
2017-12-26 07:19:17 SERVER -> CLIENT: 250-mail.justingrah.me250-PIPELINING250-SIZE 26214400250-ETRN250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN
2017-12-26 07:19:17 CLIENT -> SERVER: MAIL FROM:<justin@justingrah.me>
2017-12-26 07:19:17 SMTP INBOUND: "250 2.1.0 Ok"
2017-12-26 07:19:17 SERVER -> CLIENT: 250 2.1.0 Ok
2017-12-26 07:19:17 CLIENT -> SERVER: RCPT TO:<justin@justingrah.me>
2017-12-26 07:19:17 SMTP INBOUND: "554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied"
2017-12-26 07:19:17 SERVER -> CLIENT: 554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied
2017-12-26 07:19:17 SMTP ERROR: RCPT TO command failed: 554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied
2017-12-26 07:19:17 CLIENT -> SERVER: RCPT TO:<grah.justin@gmail.com>
2017-12-26 07:19:17 SMTP INBOUND: "554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied"
2017-12-26 07:19:17 SERVER -> CLIENT: 554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied
2017-12-26 07:19:17 SMTP ERROR: RCPT TO command failed: 554 5.7.1 <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied
2017-12-26 07:19:17 CLIENT -> SERVER: QUIT
2017-12-26 07:19:17 SMTP INBOUND: "221 2.0.0 Bye"
2017-12-26 07:19:17 SERVER -> CLIENT: 221 2.0.0 Bye
2017-12-26 07:19:17 Connection: closed
SMTP Error: The following recipients failed: justin@justingrah.me: <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access deniedgrah.justin@gmail.com: <vmd17082.contabo.host[173.212.207.128]>: Client host rejected: Access denied
Message could not be sent.Mailer Error: SMTP Error: The following recipients failed: justin@justingrah.me: : Client host rejected: Access denied grah.justin@gmail.com: : Client host rejected: Access denied
```
La clase en la cual deberías probar las opciones seria vendor/siu/chulupi-framework/src/SIU/Chulupi/util/mail.php .
saludos.