Transport protocol for SMTPAppender

Hi, is it possible to define what protocol (mail.transport.protocol) to use with SMTPAppender other than through System properties which are global? Logging important info which must be sent by mail must be part of my tests and for that purpose, I've made a MockTransport that I would like to use. Thanks, Xavier -- View this message in context: http://old.nabble.com/Transport-protocol-for-SMTPAppender-tp32986718p3298671... Sent from the Logback User mailing list archive at Nabble.com.

On 16.12.2011 11:04, kalgon wrote:
Hi,
is it possible to define what protocol (mail.transport.protocol) to use with SMTPAppender other than through System properties which are global? Logging important info which must be sent by mail must be part of my tests and for that purpose, I've made a MockTransport that I would like to use.
Thanks,
Xavier
SMTPAppenderBase does not take into account mail.transport.protocol. However, you could modify it to fit your requirements. I suggest forking and sending a pull request. Cheers, -- Ceki http://twitter.com/#!/ceki
participants (2)
-
ceki
-
kalgon