When mail is autoconfigured and `spring.mail.port` is not defined, the health contributor shows the port as `-1` instead of what is actually used. ```json "mail": { "status": "UP", "details": { "location": "smtp.example.com:-1" } } ```
When mail is autoconfigured and
spring.mail.portis not defined, the health contributor shows the port as-1instead of what is actually used.