summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTushar Bhushan <tushar.bhushan@yahoo.com>2015-10-07 15:10:54 -0700
committerTushar Bhushan <tushar.bhushan@yahoo.com>2015-10-07 15:10:54 -0700
commit4eea56b1182c20bcf02508b76cea6875d438f301 (patch)
tree03351543a5a1f28ee35058deaca6963798200111
parentc31b9aee1ecdf76e819a255ca633ff6d558f5dbc (diff)
downloadsendgrid-nodejs-4eea56b1182c20bcf02508b76cea6875d438f301.zip
sendgrid-nodejs-4eea56b1182c20bcf02508b76cea6875d438f301.tar.gz
sendgrid-nodejs-4eea56b1182c20bcf02508b76cea6875d438f301.tar.bz2
added smtpapi add and set tos
-rw-r--r--lib/email.js10
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;