diff options
Diffstat (limited to 'examples/helpers/mail/example.js')
-rw-r--r-- | examples/helpers/mail/example.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/helpers/mail/example.js b/examples/helpers/mail/example.js index 9172d80..ab5640d 100644 --- a/examples/helpers/mail/example.js +++ b/examples/helpers/mail/example.js @@ -1,12 +1,12 @@ function helloEmail(){ var helper = require('../../../lib/helpers/mail/mail.js') - from_email = new helper.Email("dx@sendgrid.com") - to_email = new helper.Email("elmer.thomas@sendgrid.com") + from_email = new helper.Email("test@example.com") + to_email = new helper.Email("test@example.com") subject = "Hello World from the SendGrid Node.js Library" content = new helper.Content("text/plain", "some text here") mail = new helper.Mail(from_email, subject, to_email, content) - email = new helper.Email("elmer.thomas+add_second_email@sendgrid.com") + email = new helper.Email("test2@example.com") mail.personalizations[0].addTo(email) return mail.toJSON() @@ -16,32 +16,32 @@ function kitchenSink(){ var helper = require('../../../lib/helpers/mail/mail.js') mail = new helper.Mail() - email = new helper.Email("dx@sendgrid.com", "DX") + email = new helper.Email("test@example.com", "Example User") mail.setFrom(email) mail.setSubject("Hello World from the SendGrid Node.js Library") personalization = new helper.Personalization() - email = new helper.Email("elmer.thomas@sendgrid.com", "Elmer Thomas") + email = new helper.Email("test1@example.com", "Example User") personalization.addTo(email) - email = new helper.Email("elmer.thomas@gmail.com", "Elmer Thomas Personal") + email = new helper.Email("test2@example.com", "Example User") personalization.addTo(email) - email = new helper.Email("elmer.thomas+cc@sendgrid.com", "Elmer Thomas CC") + email = new helper.Email("test3@example.com", "Example User") personalization.addCc(email) - email = new helper.Email("elmer.thomas+cc@gmail.com", "Elmer Thomas Personal CC") + email = new helper.Email("test4@example.com", "Example User") personalization.addCc(email) - email = new helper.Email("elmer.thomas+bcc@sendgrid.com", "Elmer Thomas BCC") + email = new helper.Email("test5@example.com", "Example User") personalization.addBcc(email) - email = new helper.Email("elmer.thomas+bcc@gmail.com", "Elmer Thomas Personal BCC") + email = new helper.Email("test6@example.com", "Example User") personalization.addBcc(email) personalization.setSubject("Hello World from the Personalized SendGrid Node.js Library") header = new helper.Header("X-Test", "True") personalization.addHeader(header) header = new helper.Header("X-Test2", "False") personalization.addHeader(header) - substitution = new helper.Substitution("%name%", "Elmer") + substitution = new helper.Substitution("%name%", "Example User") personalization.addSubstitution(substitution) - substitution = new helper.Substitution("%city%", "Riverside") + substitution = new helper.Substitution("%city%", "Denver") personalization.addSubstitution(substitution) custom_arg = new helper.CustomArgs("timing", "morning") personalization.addCustomArg(custom_arg) @@ -105,7 +105,7 @@ function kitchenSink(){ mail.setIpPoolName("23") mail_settings = new helper.MailSettings() - bcc = new helper.Bcc(true, "elmer.thomas+spam@sendgrid.com") + bcc = new helper.Bcc(true, "test@example.com") mail_settings.setBcc(bcc) footer = new helper.Footer(true, "some footer text", "<html><body>some footer text</body></html>") mail_settings.setFooter(footer) @@ -126,7 +126,7 @@ function kitchenSink(){ tracking_settings.setGanalytics(ganalytics) mail.addTrackingSettings(tracking_settings) - email = new helper.Email("dx+reply@sendgrid.com", "DX") + email = new helper.Email("test@example.com", "Example User") mail.setReplyTo(email) return mail.toJSON() |