The spring-boot-starter-mail starter sets up autoconfiguration to declare a MailSender bean if fundamental mail-related properties are configured. If you declare the starter as described in the reference documentation and declare a dependency to a MailSender the application still fails because no bean of that type can be found.
It would be nice if:
- The error message hinted at the fact that it's enough to configure the mail-related properties over asking the users to declare a bean themselves.
- The reference documentation mentioned that, too.
The
spring-boot-starter-mailstarter sets up autoconfiguration to declare aMailSenderbean if fundamental mail-related properties are configured. If you declare the starter as described in the reference documentation and declare a dependency to aMailSenderthe application still fails because no bean of that type can be found.It would be nice if: