summaryrefslogtreecommitdiffstats
path: root/examples/helpers/mail/example.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/helpers/mail/example.js')
-rw-r--r--examples/helpers/mail/example.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/helpers/mail/example.js b/examples/helpers/mail/example.js
index 364614b..1924363 100644
--- a/examples/helpers/mail/example.js
+++ b/examples/helpers/mail/example.js
@@ -136,7 +136,7 @@ function send(toSend){
console.log(JSON.stringify(toSend, null, 2))
//console.log(JSON.stringify(toSend))
- var sg = require('sendgrid').SendGrid(process.env.SENDGRID_API_KEY)
+ var sg = require('sendgrid')(process.env.SENDGRID_API_KEY)
var requestBody = toSend
var emptyRequest = require('sendgrid-rest').request