Hey there! I’m trying to set up emails in order to be able to send email notifications for tracker programs.
I’m using GMAIL address and I’m getting this response on the logs - that the email sending on the server has failed
Caused by: javax.mail.AuthenticationFailedException: 534-5.7.9 Application-specific password required. Learn more at
534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor y12-20020adffa4c000000b0031f5f0d0be0sm4922809wrr.31 - gsmtp
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:932)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:843)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:748)
at javax.mail.Service.connect(Service.java:388)
at javax.mail.Service.connect(Service.java:246)
at javax.mail.Service.connect(Service.java:195)
at javax.mail.Transport.send0(Transport.java:254)
at javax.mail.Transport.send(Transport.java:124)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
... 165 more
(EmailMessageSender.java [http-nio-8080-exec-7]) IDt2/Wmc4afztCHe4xYLxMs/YF2V/tl7yz8itHaZbkhTg=
I’ve got the same issue and this still not working for me, I keep getting this Error: “Email not sent: Sending the email to the following server failed: smtp.gmail.com:587”, What might be the problem?
If you followed all the steps in the docs mentioned in the previous post, it’s not clear why you’d see that error message. Please see if there’s any additional information you could share that might help with research what’s causing an issue connecting to the smtp.
Thank you so much @Gassim and @lillian1n2 , my problem has been solved, I don’t know what exactly was the problem but I repeated the process with a different account and now everything is fine.