This pull request changes the handling of the SMTP 'subject' option to use patternLayout instead of messagePassThroughLayout.
This means you can specify an appender like:
subject: '%p on %h: %m'
Which will produce email subjects like: "ERROR on DEV-BOX03: foo is not a valid widget"
Apart from enabling pattern specifiers (%m etc), it works exactly as before:
change subject layout to allow patterns
subject uses patternLayout instead of messagePassThroughLayout
Hi, looks like this change breaks a few existing tests (according to the travis build). Could you take a look, please? And also add some tests to cover your change. Use "npm test" to run the test suite.