diff --git a/README.md b/README.md index cd857ff..cceb028 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ var api = new ParseServer({ emailAdapter: SimpleSendGridAdapter({ apiKey: 'sendgridApiKey', fromAddress: 'fromEmailAddress', + fromName: 'Sender-Name' }) }); diff --git a/lib/index.js b/lib/index.js index 751ab46..b806124 100644 --- a/lib/index.js +++ b/lib/index.js @@ -20,6 +20,7 @@ var SimpleSendGridAdapter = function SimpleSendGridAdapter(mailOptions) { return new Promise(function (resolve, reject) { sendgrid.send({ from: mailOptions.fromAddress, + fromname: mailOptions.fromName, to: to, subject: subject, text: text