catch (AuthenticationFailedException afe) { afe.printStackTrace(); } DEBUG: Providers Listed By Protocol: {imaps=javax.mail. AuthenticationFailedException: AUTHENTICATE LOGIN failed - Invalid username or password..