diff options
author | Tushar Bhushan <tushar.bhushan@yahoo.com> | 2015-10-07 15:10:54 -0700 |
---|---|---|
committer | Tushar Bhushan <tushar.bhushan@yahoo.com> | 2015-10-07 15:10:54 -0700 |
commit | 4eea56b1182c20bcf02508b76cea6875d438f301 (patch) | |
tree | 03351543a5a1f28ee35058deaca6963798200111 | |
parent | c31b9aee1ecdf76e819a255ca633ff6d558f5dbc (diff) | |
download | sendgrid-nodejs-4eea56b1182c20bcf02508b76cea6875d438f301.zip sendgrid-nodejs-4eea56b1182c20bcf02508b76cea6875d438f301.tar.gz sendgrid-nodejs-4eea56b1182c20bcf02508b76cea6875d438f301.tar.bz2 |
added smtpapi add and set tos
-rw-r--r-- | lib/email.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/email.js b/lib/email.js index 3b2ad85..292043d 100644 --- a/lib/email.js +++ b/lib/email.js @@ -63,6 +63,16 @@ Email.prototype.addTo = function(to) { return this; }; +Email.prototype.setSmtpapiTos = function(tos) { + this.smtpapi.setTos(tos); + return this; +}; + +Email.prototype.addSmtpapiTo = function(to) { + this.smtpapi.addTo(to); + return this; +}; + Email.prototype.setTos = function(tos) { this.to = tos; return this; |