Skip to content

Failure analysis for a missing mail sender is misleading and should suggest setting the spring.mail.host property #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

    status: supersededAn issue that has been superseded by anothertype: bugA general bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions