The smtp appender now works with the current version of nodemailer

This commit is contained in:
alawatthe
2015-04-11 12:03:14 +02:00
parent 4a217afc37
commit 57fc9e7aa0
2 changed files with 1 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ function smtpAppender(config, layout) {
function sendBuffer() {
if (logEventBuffer.length > 0) {
var transport = mailer.createTransport(config.transport, config[config.transport]);
var transport = mailer.createTransport(config.SMTP);
var firstEvent = logEventBuffer[0];
var body = "";
while (logEventBuffer.length > 0) {