I am trying to set up an outbound email service for a password reset for users but I am getting the following error
" org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1; nested exception is: java.net.UnknownHostException: smtp.example.com. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1;"
I am following the following reference to set up the configuration.
Here is the configuration that I am using.
Not sure what am I missing.