nodemailer-smtp-transport
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "nodemailer-smtp-transport", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "SMTP transport for Nodemailer", | ||
@@ -5,0 +5,0 @@ "main": "src/smtp-transport.js", |
@@ -45,5 +45,9 @@ 'use strict'; | ||
SMTPTransport.prototype.send = function(mail, callback) { | ||
var connection = new SMTPConnection(this.options), | ||
returned = false; | ||
var connection = new SMTPConnection(this.options); | ||
var returned = false; | ||
connection.once('log', function(log) { | ||
this.emit('log', log); | ||
}.bind(this)); | ||
connection.once('error', function(err) { | ||
@@ -50,0 +54,0 @@ if (returned) { |
7619
105