Mail Sender & Receiver
Logging in java.mail 1.4.4
To obtain detailed information from the JavaMail library, follow these steps. This is particularly useful for diagnosing issues, such as when the new version is unable to locate an authentication mechanism.
-
Set the following parameter in
tomcat/designer:-Dmail.debug=true -
The library will now produce log output, which can be found in
catalina.outor displayed on the console in the case of Designer.
The generated output will appear as follows:
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP: check mechanisms: ...