diff options
author | Sorin Baba <sorin.baba@sendgrid.com> | 2014-12-10 10:32:07 +0200 |
---|---|---|
committer | Sorin Baba <sorin.baba@sendgrid.com> | 2014-12-10 10:43:38 +0200 |
commit | 81a9be438f99da2146e386052cb6f3135527013d (patch) | |
tree | dc73a59a722c16bfffe176b85600779b6de671fb /lib/email.js | |
parent | c61fa29ad2fbffcbecd73e7492037c316ca5c2bb (diff) | |
download | sendgrid-nodejs-81a9be438f99da2146e386052cb6f3135527013d.zip sendgrid-nodejs-81a9be438f99da2146e386052cb6f3135527013d.tar.gz sendgrid-nodejs-81a9be438f99da2146e386052cb6f3135527013d.tar.bz2 |
Added the ability to schedule the send
Diffstat (limited to 'lib/email.js')
-rw-r--r-- | lib/email.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/email.js b/lib/email.js index 701da9d..4b1c933 100644 --- a/lib/email.js +++ b/lib/email.js @@ -133,6 +133,18 @@ Email.prototype.addFile = function(file_object) { this.files.push(new FileHandler(file_object)); }; +Email.prototype.setSendAt = function(send_at) { + this.smtpapi.setSendAt(send_at); +}; + +Email.prototype.setSendEachAt = function(send_each_at) { + this.smtpapi.setSendEachAt(send_each_at); +}; + +Email.prototype.addSendEachAt = function(send_each_at) { + this.smtpapi.addSendEachAt(send_each_at); +}; + Email.prototype.toWebFormat = function() { var web = { to : this.to, |