summaryrefslogtreecommitdiffstats
path: root/examples/helpers/mail/example.js
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-06-14 19:30:22 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-06-14 19:30:22 -0700
commit9075028935c8c4b376d21142f4c9cb8881e9f986 (patch)
treeec0705b8c3c276437ea4bc66073986edd22e84cd /examples/helpers/mail/example.js
parent0b395125823559cac9029f2e12afaf2e02fd868d (diff)
downloadsendgrid-nodejs-9075028935c8c4b376d21142f4c9cb8881e9f986.zip
sendgrid-nodejs-9075028935c8c4b376d21142f4c9cb8881e9f986.tar.gz
sendgrid-nodejs-9075028935c8c4b376d21142f4c9cb8881e9f986.tar.bz2
Update mail helper examplev3.0.4
Diffstat (limited to 'examples/helpers/mail/example.js')
-rw-r--r--examples/helpers/mail/example.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/helpers/mail/example.js b/examples/helpers/mail/example.js
index 4959fe0..c109017 100644
--- a/examples/helpers/mail/example.js
+++ b/examples/helpers/mail/example.js
@@ -1,5 +1,5 @@
function helloEmail(){
- var helper = require('../../../lib/helpers/mail/mail.js')
+ var helper = require('sendgrid').mail
from_email = new helper.Email("test@example.com")
to_email = new helper.Email("test@example.com")
@@ -13,7 +13,7 @@ function helloEmail(){
}
function kitchenSink(){
- var helper = require('../../../lib/helpers/mail/mail.js')
+ var helper = require('sendgrid').mail
mail = new helper.Mail()
email = new helper.Email("test@example.com", "Example User")
@@ -136,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)
+ var sg = require('sendgrid').SendGrid(process.env.SENDGRID_API_KEY)
var requestBody = toSend
var emptyRequest = require('sendgrid-rest').request