diff options
author | David Tomberlin <david.tomberlin@sendgrid.com> | 2012-01-11 16:48:42 -0800 |
---|---|---|
committer | David Tomberlin <david.tomberlin@sendgrid.com> | 2012-01-11 16:48:42 -0800 |
commit | 8a376675fc608c6cf35b8346f417abae5688fd48 (patch) | |
tree | 4733c52b9d2a39ad82cf5ee5390332079286220d /lib/sendgrid.js | |
parent | 59ce3c683a2e81d1f9e0aa6ac97c66df7e6a21b7 (diff) | |
download | sendgrid-nodejs-8a376675fc608c6cf35b8346f417abae5688fd48.zip sendgrid-nodejs-8a376675fc608c6cf35b8346f417abae5688fd48.tar.gz sendgrid-nodejs-8a376675fc608c6cf35b8346f417abae5688fd48.tar.bz2 |
added simple smtpapi accessors
Diffstat (limited to 'lib/sendgrid.js')
-rw-r--r-- | lib/sendgrid.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js index d5aed75..e430049 100644 --- a/lib/sendgrid.js +++ b/lib/sendgrid.js @@ -27,7 +27,6 @@ SendGrid.prototype.send = function(email, callback) { 'Content-Length': post_data.length } }; - console.dir(post_data); var request = https.request(options, function(res) { res.setEncoding('utf8'); @@ -53,8 +52,6 @@ SendGrid.prototype.smtp = function(email, callback) { }; email = email.params || email; - console.log('\t\t\t' + JSON.stringify(email['x-smtpapi']) -); nodemailer.send_mail({ sender: email.from, @@ -77,9 +74,7 @@ SendGrid.prototype.getPostData = function(params) { api_user: this.api_user, api_key: this.api_key } - console.log('\n\n\n\nhere is logging params'); _(params).each(function(v, k) { - console.log("value is %s and key is %s -> %s", v, k, _(v).isObject() ); if (_(v).isObject() && !_(v).isDate() && !_(v).isArray()) v = JSON.stringify(v); data[k] = v; |