summaryrefslogtreecommitdiffstats
path: root/examples/helpers/mail/example.js
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-05-10 15:24:46 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-05-10 15:24:46 -0700
commit0d93d65b9e8230fda616e8d31c441bb2b412f9a3 (patch)
treec1cba66a92787e5a2bb5c1366ddc0a3af92efdd1 /examples/helpers/mail/example.js
parent0640a1f6ba62c780a11e9f3caecdf8024b6d2cba (diff)
downloadsendgrid-nodejs-0d93d65b9e8230fda616e8d31c441bb2b412f9a3.zip
sendgrid-nodejs-0d93d65b9e8230fda616e8d31c441bb2b412f9a3.tar.gz
sendgrid-nodejs-0d93d65b9e8230fda616e8d31c441bb2b412f9a3.tar.bz2
Ready to deploy
Diffstat (limited to 'examples/helpers/mail/example.js')
-rw-r--r--examples/helpers/mail/example.js5
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