문제

I'm trying to find out if authentication configurations are filled correctly. But I don't want to send message to catch AuthenticationFailedException(). How can I catch this exception without sending? I've got few fields:

  • mail
  • smtp
  • port
  • password

If they're incorrect, exception should be thrown.

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top