diff options
author | Tushar Bhushan <tushar.bhushan@yahoo.com> | 2015-09-09 12:19:38 -0700 |
---|---|---|
committer | Tushar Bhushan <tushar.bhushan@yahoo.com> | 2015-09-09 12:19:38 -0700 |
commit | 22bcc359af9a1fb4c50738f76aeb72fddeb65fb8 (patch) | |
tree | 8e74f6e071a37d6a02459e27bce57f2fe35ab374 | |
parent | 2cb34372ef0f31352f7c90015a45e1200cb849da (diff) | |
download | sendgrid-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.js | 4 |
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; }; |