diff options
Diffstat (limited to 'examples/helpers/mail/example.js')
-rw-r--r-- | examples/helpers/mail/example.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/helpers/mail/example.js b/examples/helpers/mail/example.js index 1cfe69e..9172d80 100644 --- a/examples/helpers/mail/example.js +++ b/examples/helpers/mail/example.js @@ -96,7 +96,8 @@ function kitchenSink(){ mail.setSendAt(1443636899) - mail.setBatchId("some_batch_id") + //This must be a valid [batch ID](https://sendgrid.com/docs/API_Reference/SMTP_API/scheduling_parameters.html) to work + //mail.setBatchId("some_batch_id") asm = new helper.Asm(3, [1,4,5]) mail.setAsm(asm) @@ -135,7 +136,7 @@ function send(toSend){ console.log(JSON.stringify(toSend, null, 2)) //console.log(JSON.stringify(toSend)) - var sg = require('../../../lib/sendgrid.js').SendGrid(process.env.SENDGRID_API_KEY, "3wyb2hp7emnqja6ys.stoplight-proxy.io") + var sg = require('../../../lib/sendgrid.js').SendGrid(process.env.SENDGRID_API_KEY) var requestBody = toSend var emptyRequest = require('sendgrid-rest').request |