diff options
-rw-r--r-- | lib/sendgrid.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js index 6014277..3b03038 100644 --- a/lib/sendgrid.js +++ b/lib/sendgrid.js @@ -160,8 +160,7 @@ var Sendgrid = function(api_user, api_key, options) { _.extend(smtpParams, nodeMailerOptions); } - smtpTransport.sendMail(smtpParams, function(error) { - //Returns: error, response; response unused + smtpTransport.sendMail(smtpParams, function(error, response) { smtpTransport.close(); if(error) { return callback(new Error(error.message), null);} |