Skip to content

Commit

Permalink
Update mail helper example
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingserious committed Jun 15, 2016
1 parent 0b39512 commit 9075028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/helpers/mail/example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function helloEmail(){
var helper = require('../../../lib/helpers/mail/mail.js')
var helper = require('sendgrid').mail

from_email = new helper.Email("[email protected]")
to_email = new helper.Email("[email protected]")
Expand All @@ -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("[email protected]", "Example User")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9075028

Please sign in to comment.