diff options
author | scottmotte <scott@scottmotte.com> | 2013-11-07 08:41:50 -0800 |
---|---|---|
committer | scottmotte <scott@scottmotte.com> | 2013-11-07 08:41:50 -0800 |
commit | 1c00e5807fe21cd475d14767a5c6593f6c3acb0e (patch) | |
tree | ff8d34900bbe388c951d5ae2496c8b35570f0718 /lib | |
parent | 097a639404d49ab670d513c305105b54aa391e84 (diff) | |
download | sendgrid-nodejs-1c00e5807fe21cd475d14767a5c6593f6c3acb0e.zip sendgrid-nodejs-1c00e5807fe21cd475d14767a5c6593f6c3acb0e.tar.gz sendgrid-nodejs-1c00e5807fe21cd475d14767a5c6593f6c3acb0e.tar.bz2 |
Add the ability to setFrom
Diffstat (limited to 'lib')
-rw-r--r-- | lib/email.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/email.js b/lib/email.js index d610661..80801d5 100644 --- a/lib/email.js +++ b/lib/email.js @@ -83,6 +83,10 @@ Email.prototype.addTo = function(to) { this.smtpapi.addTo(to); }; +Email.prototype.setFrom = function(from) { + this.from = from; +}; + /** * This method is a proxy for the add sub val on the SmtpapiHeaders * |