Envio de email via javaemail

Jorge Rodrigues 0 Reputation points
2024-12-09T14:49:55.1233333+00:00

Bom dia.

Tenho uma conta particular nao paga. Tenho uma aplicacao em java, onde envio emails para os clientes. Nao consigo mais enviar emails, em funcao da politica de autenticacao basica ter sido descontinuada.

11:10:29,522 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG: JavaMail version 1.5.5

11:10:29,527 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG: successfully loaded resource: /META-INF/javamail.default.providers

11:10:29,527 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG: Tables of loaded providers

11:10:29,527 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]}

11:10:29,528 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]}

11:10:29,529 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map

11:10:29,577 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]

11:10:29,594 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: useEhlo true, useAuth true

11:10:29,595 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: trying to connect to host "smtp-mail.outlook.com", port 587, isSSL false

11:10:29,641 INFO  [stdout] (thread_envioEmail1733494225347) 220 RO2P152CA0049.outlook.office365.com Microsoft ESMTP MAIL Service ready at Fri, 6 Dec 2024 14:10:29 +0000 [08DD1472D4F7DD1C]

11:10:29,642 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: connected to host "smtp-mail.outlook.com", port: 587

11:10:29,642 INFO  [stdout] (thread_envioEmail1733494225347) 

11:10:29,644 INFO  [stdout] (thread_envioEmail1733494225347) EHLO DESKTOP-DAL4412

11:10:29,656 INFO  [stdout] (thread_envioEmail1733494225347) 250-RO2P152CA0049.outlook.office365.com Hello [179.218.9.19]

11:10:29,656 INFO  [stdout] (thread_envioEmail1733494225347) 250-SIZE 157286400

11:10:29,656 INFO  [stdout] (thread_envioEmail1733494225347) 250-PIPELINING

11:10:29,656 INFO  [stdout] (thread_envioEmail1733494225347) 250-DSN

11:10:29,656 INFO  [stdout] (thread_envioEmail1733494225347) 250-ENHANCEDSTATUSCODES

11:10:29,657 INFO  [stdout] (thread_envioEmail1733494225347) 250-STARTTLS

11:10:29,657 INFO  [stdout] (thread_envioEmail1733494225347) 250-8BITMIME

11:10:29,657 INFO  [stdout] (thread_envioEmail1733494225347) 250-BINARYMIME

11:10:29,657 INFO  [stdout] (thread_envioEmail1733494225347) 250-CHUNKING

11:10:29,657 INFO  [stdout] (thread_envioEmail1733494225347) 250 SMTPUTF8

11:10:29,657 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "SIZE", arg "157286400"

11:10:29,658 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "PIPELINING", arg ""

11:10:29,658 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "DSN", arg ""

11:10:29,658 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""

11:10:29,658 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "STARTTLS", arg ""

11:10:29,658 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "8BITMIME", arg ""

11:10:29,659 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "BINARYMIME", arg ""

11:10:29,659 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "CHUNKING", arg ""

11:10:29,659 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "SMTPUTF8", arg ""

11:10:29,659 INFO  [stdout] (thread_envioEmail1733494225347) STARTTLS

11:10:29,672 INFO  [stdout] (thread_envioEmail1733494225347) 220 2.0.0 SMTP server ready

11:10:30,198 INFO  [stdout] (thread_envioEmail1733494225347) EHLO DESKTOP-DAL4412

11:10:30,211 INFO  [stdout] (thread_envioEmail1733494225347) 250-RO2P152CA0049.outlook.office365.com Hello [179.218.9.19]

11:10:30,211 INFO  [stdout] (thread_envioEmail1733494225347) 250-SIZE 157286400

11:10:30,211 INFO  [stdout] (thread_envioEmail1733494225347) 250-PIPELINING

11:10:30,211 INFO  [stdout] (thread_envioEmail1733494225347) 250-DSN

11:10:30,211 INFO  [stdout] (thread_envioEmail1733494225347) 250-ENHANCEDSTATUSCODES

11:10:30,211 INFO  [stdout] (thread_envioEmail1733494225347) 250-AUTH LOGIN XOAUTH2

11:10:30,212 INFO  [stdout] (thread_envioEmail1733494225347) 250-8BITMIME

11:10:30,212 INFO  [stdout] (thread_envioEmail1733494225347) 250-BINARYMIME

11:10:30,212 INFO  [stdout] (thread_envioEmail1733494225347) 250-CHUNKING

11:10:30,212 INFO  [stdout] (thread_envioEmail1733494225347) 250 SMTPUTF8

11:10:30,212 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "SIZE", arg "157286400"

11:10:30,212 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "PIPELINING", arg ""

11:10:30,212 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "DSN", arg ""

11:10:30,213 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""

11:10:30,213 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "AUTH", arg "LOGIN XOAUTH2"

11:10:30,213 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "8BITMIME", arg ""

11:10:30,213 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "BINARYMIME", arg ""

11:10:30,213 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "CHUNKING", arg ""

11:10:30,213 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Found extension "SMTPUTF8", arg ""

11:10:30,213 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2 

11:10:30,214 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: mechanism LOGIN disabled by property: mail.smtp.auth.login.disable

11:10:30,214 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: mechanism PLAIN not supported by server

11:10:30,214 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: mechanism DIGEST-MD5 not supported by server

11:10:30,214 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: mechanism NTLM not supported by server

11:10:30,214 INFO  [stdout] (thread_envioEmail1733494225347) DEBUG SMTP: mechanism XOAUTH2 disabled by property: mail.smtp.auth.xoauth2.disable

11:10:30,218 ERROR [stderr] (thread_envioEmail1733494225347) javax.mail.AuthenticationFailedException: No authentication mechanisms supported by both server and client

11:10:30,218 ERROR [stderr] (thread_envioEmail1733494225347)  at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:829)

11:10:30,218 ERROR [stderr] (thread_envioEmail1733494225347)  at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:730)

Community Center Not monitored
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.