If Spring Boot's auto-configuration isn't creating the JavaMailSender
bean automatically (resulting in No beans of 'JavaMailSender' type found
), you can manually configure it. This approach ensures the bean is properly initialized, especially when working with local SMTP servers like MailDev.