summaryrefslogtreecommitdiffstats
path: root/lib/helpers/mail
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 /lib/helpers/mail
parent0640a1f6ba62c780a11e9f3caecdf8024b6d2cba (diff)
downloadsendgrid-nodejs-0d93d65b9e8230fda616e8d31c441bb2b412f9a3.zip
sendgrid-nodejs-0d93d65b9e8230fda616e8d31c441bb2b412f9a3.tar.gz
sendgrid-nodejs-0d93d65b9e8230fda616e8d31c441bb2b412f9a3.tar.bz2
Ready to deploy
Diffstat (limited to 'lib/helpers/mail')
-rw-r--r--lib/helpers/mail/README.md6
-rw-r--r--lib/helpers/mail/mail.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/helpers/mail/README.md b/lib/helpers/mail/README.md
index 2f22500..4ba3385 100644
--- a/lib/helpers/mail/README.md
+++ b/lib/helpers/mail/README.md
@@ -2,7 +2,7 @@
# Quick Start
-Run the [example]() (make sure you have set your environment variable to include your SENDGRID_API_KEY).
+Run the [example](https://github.com/sendgrid/sendgrid-nodejs/tree/v3beta/examples) (make sure you have set your environment variable to include your SENDGRID_API_KEY).
```bash
node examples/helpers/mail/example.js
@@ -10,5 +10,5 @@ node examples/helpers/mail/example.js
## Usage
-- See the example for a complete working example.
-- [Documentation]() \ No newline at end of file
+- See the [example](https://github.com/sendgrid/sendgrid-nodejs/tree/v3beta/examples) for a complete working example.
+- [Documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/overview.html) \ No newline at end of file
diff --git a/lib/helpers/mail/mail.js b/lib/helpers/mail/mail.js
index 924ccc5..f0815be 100644
--- a/lib/helpers/mail/mail.js
+++ b/lib/helpers/mail/mail.js
@@ -876,7 +876,7 @@ function Mail(from_email, subject, to_email, content) {
this.toJSON = function() {
var json = {
from: this.getFrom(),
- personalization: this.getPersonalizations(),
+ personalizations: this.getPersonalizations(),
subject: this.getSubject(),
content: this.getContents(),
attachments: this.getAttachments(),