summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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
*