summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorscottmotte <scott@scottmotte.com>2013-10-30 11:15:15 -0700
committerscottmotte <scott@scottmotte.com>2013-10-30 11:15:15 -0700
commit504ddc1024bdeee4d4e8240624ca7f593a675a4f (patch)
treefaab4660d3f629b91965f3e13438ee709a3e09a9 /lib
parent9425c5d0acbfe8d0082e78fa81af88039f1067eb (diff)
downloadsendgrid-nodejs-504ddc1024bdeee4d4e8240624ca7f593a675a4f.zip
sendgrid-nodejs-504ddc1024bdeee4d4e8240624ca7f593a675a4f.tar.gz
sendgrid-nodejs-504ddc1024bdeee4d4e8240624ca7f593a675a4f.tar.bz2
Fix bcc in smtp. Version bump 0.4.1
Diffstat (limited to 'lib')
-rw-r--r--lib/email.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/email.js b/lib/email.js
index 6dedcf2..d610661 100644
--- a/lib/email.js
+++ b/lib/email.js
@@ -240,6 +240,8 @@ Email.prototype.toSmtpFormat = function() {
headers : this.headers
};
+ if (this.bcc) { smtp.bcc = this.bcc; }
+
smtp.headers['x-smtpapi'] = this.smtpapi.toJson();
this._formatFilesForNodeMailer(this.files);