How can I log the debug messages to a file when I session.setDebug(true)?
Created May 7, 2012
John Zukowski With the 1.3 release of JavaMail, there is support for session-level output streams. Call
public void setDebugOut(java.io.PrintStream out)
to change the stream from System.out. Passing in a value of null will use System.out for output.