What is the recommended approach for handling SMTP mail sending failures using JavaMailSender?
We have implemented SMTP email sending functionality in our service using JavaMailSender. Recently, there was an internal error on the SMTP server, causing our service to be unable to send emails for a period of time. Fortunately, critical business logic is separated from the email sending logic, so there was no severe impact on our service. We identified errors occurring in the javamailsender.send() part through try-catch blocks.