If your solution was working correctly previously and stopped suddenly then first thing to check is the mail server configuration. You need to check if TLS support is updated on the mail server you are using. If it is enabled you need to make changes to your application by enabling spring.mail.properties.mail.smtp.starttls.enable and changing the port number.