I am trying to send the mail from my spring boot application. The following are the smtp configurations I have added in application.yml
spring:
  mail:
    host: smtp.gmail.com
    port: 587
    username: ${username}
    password: ${app-password}
    properties:
      mail:
        transport:
          protocol: smtp
        smtp:
          auth: true
          starttls:
            enable: true
But when I am trying to send the mail, I am getting the following exception
Mail server connection failed; nested exception is
    javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:
    javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).
Failed messages: javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:
    javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)"
Please help me with this. I have searched many blogs, my configurations seems to be fine. Let me know If I need to change or add something.
Thanks in advance!
 
     
    