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 ddbded3..364614b 100644
--- a/examples/helpers/mail/example.js
+++ b/examples/helpers/mail/example.js
@@ -144,7 +144,7 @@ function send(toSend){
requestPost.method = 'POST'
requestPost.path = '/v3/mail/send'
requestPost.body = requestBody
- sg.API(requestPost, function (response) {
+ sg.API(requestPost, function (error, response) {
console.log(response.statusCode)
console.log(response.body)
console.log(response.headers)