summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorscottmotte <scott@scottmotte.com>2013-11-07 08:41:50 -0800
committerscottmotte <scott@scottmotte.com>2013-11-07 08:41:50 -0800
commit1c00e5807fe21cd475d14767a5c6593f6c3acb0e (patch)
treeff8d34900bbe388c951d5ae2496c8b35570f0718 /lib
parent097a639404d49ab670d513c305105b54aa391e84 (diff)
downloadsendgrid-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.js4
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
*