summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTushar Bhushan <tushar.bhushan@yahoo.com>2015-09-09 12:19:38 -0700
committerTushar Bhushan <tushar.bhushan@yahoo.com>2015-09-09 12:19:38 -0700
commit22bcc359af9a1fb4c50738f76aeb72fddeb65fb8 (patch)
tree8e74f6e071a37d6a02459e27bce57f2fe35ab374
parent2cb34372ef0f31352f7c90015a45e1200cb849da (diff)
downloadsendgrid-nodejs-22bcc359af9a1fb4c50738f76aeb72fddeb65fb8.zip
sendgrid-nodejs-22bcc359af9a1fb4c50738f76aeb72fddeb65fb8.tar.gz
sendgrid-nodejs-22bcc359af9a1fb4c50738f76aeb72fddeb65fb8.tar.bz2
changed the cc/bcc to use the web api; change potentially breaking
-rw-r--r--lib/email.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/email.js b/lib/email.js
index 5f6be7a..3b2ad85 100644
--- a/lib/email.js
+++ b/lib/email.js
@@ -59,12 +59,12 @@ Email.prototype.setHeaders = function(object_literal) {
};
Email.prototype.addTo = function(to) {
- this.smtpapi.addTo(to);
+ this.to.push(to);
return this;
};
Email.prototype.setTos = function(tos) {
- this.smtpapi.setTos(tos);
+ this.to = tos;
return this;
};