simple-java-mail
simple-java-mail copied to clipboard
Providing access to Session instance - mailer.getSession().setDebugOut(new PrintStream(new SMTPLogger()));
Providing access to Session instance for emergency fall-back scenario. Please let us know why you need it.
How can I set the debugOut other way ? Thank you !
mailer.getSession().setDebugOut(new PrintStream(new SMTPLogger()));
Thank you for reporting this. I saw your report a few days ago, but wasn't sure what to think about it. I'm still not sure, but at least now you know I'm still thinking about it :)
I think you have one of the few use cases where you should actually do this on the underlying Session instance, rather than through Mailer api. This is what I'm mulling about, but I can't come to a clear conclusion, nor is it earth shattering urgent (or as important as you have a good approach now).
Yes, closing as edge use case that can be solved by accessing the underlying Session. There's nothing Simple Java Mail can do here to make this simpler. But thank you for taking the time to report this!