From 5c705281e72a1dfdf0d759636ac896fbf7ebcf66 Mon Sep 17 00:00:00 2001 From: Jeff Pearsall Date: Fri, 17 Nov 2017 21:45:52 -0800 Subject: [PATCH] adding html support to adapter for custom html templates --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 68f584c..014c05f 100644 --- a/src/index.js +++ b/src/index.js @@ -6,13 +6,14 @@ let SimpleSendGridAdapter = mailOptions => { } let sendgrid = SendGrid(mailOptions.apiKey); - let sendMail = ({to, subject, text}) => { + let sendMail = ({to, subject, text, html}) => { return new Promise((resolve, reject) => { sendgrid.send({ from: mailOptions.fromAddress, to: to, subject: subject, text: text, + html: html, }, function(err, json) { if (err) { reject(err);