Skip to content

Improve MailSender related error message when the mail starter is used #49359

@odrotbohm

Description

@odrotbohm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: team-meetingAn issue we'd like to discuss as a team to make progressstatus: waiting-for-triageAn issue we've not yet triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions