org.springframework.mail.MailAuthenticationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • unable to send email with spring boot
    via Stack Overflow by Drew1208
    ,
  • JavaMail Not Working on Amazon EC2
    via Stack Overflow by Michael Massey
    ,
  • GitHub comment 972#140968595
    via GitHub by Funalism
    ,
  • Authentication Issue with SendGrid
    via Stack Overflow by user2320254
    ,
    • org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is 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 m136sm35515551ywd.19 - gsmtp at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:424)[spring-context-support-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:307)[spring-context-support-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:296)[spring-context-support-4.3.4.RELEASE.jar:4.3.4.RELEASE] at com.stidham.services.EmailService.sendNotificaitoin(EmailService.java:37)[EmailService.class:na] at com.stidham.services.EmailService$$FastClassBySpringCGLIB$$71bb8be6.invoke(<generated>)[EmailService.class:na] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)[spring-core-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:115)[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_31] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_31] 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 m136sm35515551ywd.19 - gsmtp at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:932)[javax.mail-1.5.6.jar:1.5.6] at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:843)[javax.mail-1.5.6.jar:1.5.6] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:748)[javax.mail-1.5.6.jar:1.5.6] at javax.mail.Service.connect(Service.java:366)[javax.mail-1.5.6.jar:1.5.6] at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:501)[spring-context-support-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:421)[spring-context-support-4.3.4.RELEASE.jar:4.3.4.RELEASE] ... 10 more

    Users with the same issue

    rocdayrocday
    2 times, last one,
    aidoanaidoan
    1 times, last one,
    AxeloAxelo
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    63 more bugmates