Buscar
Social
Ofertas laborales ES

Soporte de javaHispano > Error al enviar correos java-mail - com.sun.mail.smtp.SMTPSenderFailedException: 550 5.5.0 Invalid EHLO/HELO domain

Amigo necesito su ayuda por favor estoy programando en java 1.8 con libreria mail 1.6.2.jar, para envio de correos gmail y hotmail, estaba funcionando 100% todo el tiempo, pero desde hoy surgio un problema aqui le dejo el codigo donde se realiza la configuración de correos:
..................................................................
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.port", 587);
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.ssl.protocols", "TLSv1.1 TLSv1.2");
props.put("mail.debug", "true");
..................................................................

Error que sale en la consola de java:
..................................................................
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 587, isSSL false
220 smtp.gmail.com ESMTP k15sm3130403uaq.19 - gsmtp
DEBUG SMTP: connected to host "smtp.gmail.com", port: 587

EHLO PROGRAMADOR
250-smtp.gmail.com at your service, [181.199.46.139]
250-SIZE 35882577
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 SMTPUTF8
DEBUG SMTP: Found extension "SIZE", arg "35882577"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "SMTPUTF8", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<davyfact.factelectronica@gmail.com>
550 5.5.0 Invalid EHLO/HELO domain.
DEBUG SMTP: got response code 550, with response: 550 5.5.0 Invalid EHLO/HELO domain.

RSET
250 2.1.5 Flushed k15sm3130403uaq.19 - gsmtp
DEBUG SMTP: MessagingException while sending, THROW:
com.sun.mail.smtp.SMTPSendFailedException: 550 5.5.0 Invalid EHLO/HELO domain.
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 550 5.5.0 Invalid EHLO/HELO domain.

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2108)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1609)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1117)
at ec.com.davyfact.modulos.facturacionElectronica.gestionSRI.enviarEmailCliePro.enviarCorreo(enviarEmailCliePro.java:186)
at ec.com.davyfact.hilos.hiloSMSEsperaEnviarEmail.run(hiloSMSEsperaEnviarEmail.java:209)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.sun.mail.smtp.SMTPSenderFailedException: 550 5.5.0 Invalid EHLO/HELO domain.

at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1616)
... 4 more
[2021-06-08 16:58:46] [ INFO ] [enviarEmailCliePro:196] Error al enviar email: com.sun.mail.smtp.SMTPSendFailedException: 550 5.5.0 Invalid EHLO/HELO domain.
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 550 5.5.0 Invalid EHLO/HELO domain.
..................................................................

Gracias de antemano su ayuda

junio 9, 2021 | Registered Commenterbyronjce