summaryrefslogtreecommitdiffstats
path: root/lib/email.js
diff options
context:
space:
mode:
authorscottmotte <scott@scottmotte.com>2013-12-19 15:33:21 -0800
committerscottmotte <scott@scottmotte.com>2013-12-19 15:33:21 -0800
commitfe2e7697a79939b6e04bd4f86cd823b1a152587d (patch)
tree0e1578416a1e6f5cdb5b115c9f0f944c069b7c59 /lib/email.js
parent4dcb0c3d12f4898dd2b5991dacb3d1b5a9b4a400 (diff)
downloadsendgrid-nodejs-fe2e7697a79939b6e04bd4f86cd823b1a152587d.zip
sendgrid-nodejs-fe2e7697a79939b6e04bd4f86cd823b1a152587d.tar.gz
sendgrid-nodejs-fe2e7697a79939b6e04bd4f86cd823b1a152587d.tar.bz2
Update to use smtpapi lib - renamed from xsmtpapi
Diffstat (limited to 'lib/email.js')
-rw-r--r--lib/email.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/email.js b/lib/email.js
index 8617ffc..45c30fc 100644
--- a/lib/email.js
+++ b/lib/email.js
@@ -1,7 +1,7 @@
"use strict";
var FileHandler = require('./file_handler');
-var xsmtpapi = require('xsmtpapi');
+var smtpapi = require('smtpapi');
var _ = require('lodash');
var request = require('request');
var fs = require('fs');
@@ -28,7 +28,7 @@ function Email(params) {
this.to = params.to || [];
this.from = params.from || '';
- this.smtpapi = params.smtpapi || new xsmtpapi.Header();
+ this.smtpapi = params.smtpapi || new smtpapi.Header();
this.subject = params.subject || '';
this.text = params.text || '';
this.html = params.html || '';