{"_id":"sendgrid-web","_rev":"25-9c3f3f35cefb093eeaa12e280393c10b","name":"sendgrid-web","description":"Easily send emails with sendgrid and node.js","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.0":{"author":{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com","url":"http://jesusabdullah.github.com"},"name":"sendgrid-web","description":"Easily send emails with sendgrid and node.js","version":"0.0.0","homepage":"https://github.com/jesusabdullah/node-sendgrid-web","repository":{"type":"git","url":"git@github.com:jesusabdullah/node-sendgrid-web.git"},"main":"lib/sendgrid.js","scripts":{"test":"nodeunit test/*.js"},"engines":{"node":"~v0.4.9"},"dependencies":{"request":"2.1.x"},"devDependencies":{},"_npmJsonOpts":{"file":"/home/josh/.npm/sendgrid-web/0.0.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"sendgrid-web@0.0.0","_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"45d11cef71efa5b13f6d5e0c36bf08d14a5c0a9a","tarball":"https://registry.npmjs.org/sendgrid-web/-/sendgrid-web-0.0.0.tgz","integrity":"sha512-3irm/Ya0SPSrU7EIVTgwmv0BMkXm6G/cyL8BTHYJnqal3JWwlj/l46kohY4iCfUF1s3MH8zZ7jgfDaaMSDp5rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2fyaljhilGiihGtXLKluKodka6Q5r+I5/ZiiODe+8ZAiEA/4hsHFhLnL3q//XifLWjdHVXD9WyXOMDxg+h3U2mg88="}]},"maintainers":[{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"}],"directories":{},"deprecated":"I maintained this module when I worked for Nodejitsu but haven't touched it in a long time. Look for a newer, maintained package."},"0.0.1":{"author":{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com","url":"http://jesusabdullah.github.com"},"name":"sendgrid-web","description":"Easily send emails with sendgrid and node.js","version":"0.0.1","homepage":"https://github.com/jesusabdullah/node-sendgrid-web","repository":{"type":"git","url":"git@github.com:jesusabdullah/node-sendgrid-web.git"},"main":"lib/sendgrid.js","scripts":{"test":"nodeunit test/*.js"},"engines":{"node":"*"},"dependencies":{"request":"2.1.x"},"devDependencies":{},"_npmUser":{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"},"_id":"sendgrid-web@0.0.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"686eb34b4b26cd82d01caabc6ee62f27624fc2da","tarball":"https://registry.npmjs.org/sendgrid-web/-/sendgrid-web-0.0.1.tgz","integrity":"sha512-h5rZrmM3frwaV0wpoTvYr6YTm3QN9W/IT6N+9153K6j4qeYJmtWbRj4ROLhSa+FZdPj1DqHquWOfakRjOmDeHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMGCxw+NBdPKrgQsnbZxuP7SYXj/W4YlvzWF1SuQS8ZwIgA3F0ASGKh8SY8KB+AC/zLItnZN6qZb//B9aPxzIMvxo="}]},"maintainers":[{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"}],"directories":{},"deprecated":"I maintained this module when I worked for Nodejitsu but haven't touched it in a long time. Look for a newer, maintained package."},"0.0.2":{"author":{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com","url":"http://jesusabdullah.github.com"},"name":"sendgrid-web","description":"Easily send emails with sendgrid and node.js","version":"0.0.2","homepage":"https://github.com/jesusabdullah/node-sendgrid-web","repository":{"type":"git","url":"git@github.com:jesusabdullah/node-sendgrid-web.git"},"main":"lib/sendgrid.js","scripts":{"test":"nodeunit test/*.js"},"engines":{"node":"*"},"dependencies":{"request":"2.9.100"},"devDependencies":{},"_npmUser":{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"},"_id":"sendgrid-web@0.0.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.10","_defaultsLoaded":true,"dist":{"shasum":"4fce69646ffaa67ad8d3604ca2f7652b346a78c8","tarball":"https://registry.npmjs.org/sendgrid-web/-/sendgrid-web-0.0.2.tgz","integrity":"sha512-m9JYsu9284InzkW6D4AvjuEgs7MIvRb80LofUDnNmOeUPkyL5yeVwubYOKCAtbBCKm/ssKYy+1xEUAya4K/egw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGLf4dAm9dmhLqE9XH36dftf2zOQS3JYMk5FmhCeg72AiALwuG0y/FEEAquatdY43RYvEclyh0DLl6Be3cJ8fJLNg=="}]},"maintainers":[{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"}],"directories":{},"deprecated":"I maintained this module when I worked for Nodejitsu but haven't touched it in a long time. Look for a newer, maintained package."},"0.0.3":{"author":{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com","url":"http://jesusabdullah.github.com"},"name":"sendgrid-web","description":"Easily send emails with sendgrid and node.js","version":"0.0.3","homepage":"https://github.com/jesusabdullah/node-sendgrid-web","repository":{"type":"git","url":"git@github.com:jesusabdullah/node-sendgrid-web.git"},"main":"lib/sendgrid.js","scripts":{"test":"nodeunit test/*.js"},"engines":{"node":"*"},"dependencies":{"request":"2.9.100"},"devDependencies":{},"_npmUser":{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"},"_id":"sendgrid-web@0.0.3","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"7e1925a2f6b3258be183de73200229fd2f0fd3be","tarball":"https://registry.npmjs.org/sendgrid-web/-/sendgrid-web-0.0.3.tgz","integrity":"sha512-qEZ95x7xeiz1J58W3d2v+7+9P7ofKiqGKubcufLnlL6rthGiD6eYkrE5050/YfHI1XopR8KtNQfLqxJ2h1HmJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXGAyhPQKRIIRIo4KG1B+/1aUJAmKnnW//SXcTZIb24AIhAJFfHyTRXtekRpBITcmRVR7zY4Y03vvP0oPN/X6T92pv"}]},"maintainers":[{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"}],"directories":{},"deprecated":"I maintained this module when I worked for Nodejitsu but haven't touched it in a long time. Look for a newer, maintained package."},"0.0.4":{"author":{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com","url":"http://jesusabdullah.github.com"},"name":"sendgrid-web","description":"Easily send emails with sendgrid and node.js","version":"0.0.4","homepage":"https://github.com/jesusabdullah/node-sendgrid-web","repository":{"type":"git","url":"git@github.com:jesusabdullah/node-sendgrid-web.git"},"main":"lib/sendgrid.js","scripts":{"test":"nodeunit test/*.js"},"engines":{"node":"*"},"dependencies":{"request":"2.9.100"},"devDependencies":{},"_npmUser":{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"},"_id":"sendgrid-web@0.0.4","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.1","_defaultsLoaded":true,"dist":{"shasum":"cc9ce5febab9b929119397b18fc9828e4e14deac","tarball":"https://registry.npmjs.org/sendgrid-web/-/sendgrid-web-0.0.4.tgz","integrity":"sha512-EYM5AXuPWQsoTuuuKS3U6XuEWMhd7p9RrP0YbfeUjPIxwGZ2UNt3I7sbT+PUaVLmwkO19EpEV7QzYzNIm9z4JA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVw7A11gHZr9PvhwfTPyT1+zH4yL9joT9GxqwNI/VwtwIgK/yJW4tAK2loAn/aqVzAhFepWpDeVURNr6AUb8Ec5Jo="}]},"maintainers":[{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"}],"directories":{},"deprecated":"I maintained this module when I worked for Nodejitsu but haven't touched it in a long time. Look for a newer, maintained package."},"0.0.5":{"author":{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com","url":"http://jesusabdullah.github.com"},"name":"sendgrid-web","description":"Easily send emails with sendgrid and node.js","version":"0.0.5","homepage":"https://github.com/jesusabdullah/node-sendgrid-web","repository":{"type":"git","url":"git@github.com:jesusabdullah/node-sendgrid-web.git"},"main":"lib/sendgrid.js","scripts":{"test":"nodeunit test/*.js"},"engines":{"node":"*"},"dependencies":{"request":"~2.27.0"},"devDependencies":{"nodeunit":"~0.8.2"},"bugs":{"url":"https://github.com/jesusabdullah/node-sendgrid-web/issues"},"_id":"sendgrid-web@0.0.5","dist":{"shasum":"f8730c96b099b0fcd405b8730015b55f3cd7b77f","tarball":"https://registry.npmjs.org/sendgrid-web/-/sendgrid-web-0.0.5.tgz","integrity":"sha512-qNKNBc7Dfp3yEQNgeceaz8ddiGoBDcnihgysqYbqg6r7586vFY2pNjzBGcj3ZBJ3uyOm91nzjSl4xx1/P3xCzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEZnhsp/lBJmfJ8+8aXMgSETYLtmVRq0eZ5W8EV9PwZwIhAJannV4CmqBz3cjeU2dAv6OzCj9dRIAXeOzjO/J0lGUD"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"},"maintainers":[{"name":"jesusabdullah","email":"josh.holbrook@gmail.com"}],"directories":{},"deprecated":"I maintained this module when I worked for Nodejitsu but haven't touched it in a long time. Look for a newer, maintained package."}},"maintainers":[{"email":"josh.holbrook@gmail.com","name":"jfhbrook"}],"time":{"modified":"2022-06-26T17:36:02.578Z","created":"2011-09-01T17:45:35.641Z","0.0.0":"2011-09-01T17:45:37.177Z","0.0.1":"2011-12-30T03:48:15.836Z","0.0.2":"2012-02-21T23:21:22.123Z","0.0.3":"2012-06-29T08:28:05.562Z","0.0.4":"2012-07-30T20:26:46.553Z","0.0.5":"2013-11-12T19:23:51.852Z"},"author":{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com","url":"http://jesusabdullah.github.com"},"repository":{"type":"git","url":"git@github.com:jesusabdullah/node-sendgrid-web.git"},"users":{"fgribreau":true},"homepage":"https://github.com/jesusabdullah/node-sendgrid-web","bugs":{"url":"https://github.com/jesusabdullah/node-sendgrid-web/issues"},"readme":"# sendgrid-web\n\nSend emails with [sendgrid](http://sendgrid.com) and node.js! This sendgrid module (there are others) uses their JSON web API and the [request](https://github.com/mikeal/request) module.\n\n## Install:\n\n    npm install sendgrid-web\n\n## Example:\n\n``` js\n    var Sendgrid = require(\"sendgrid-web\");\n\n    var sendgrid = new Sendgrid({\n      user: \"josh.holbrook@gmail.com\",\n      key: \"oh, like you need to know.\"\n    });\n\n    sendgrid.send({\n      to: 'josh.holbrook@gmail.com',\n      from: 'josh.holbrook@gmail.com',\n      subject: 'Hello world!',\n      html: '<h1>Hello world!</h1>'\n    }, function (err) {\n      if (err) {\n        console.log(err);\n      } else {\n        console.log(\"Success.\");\n      }\n    });\n```\n\n## Usage:\n\n### new Sendgrid(credentials)\n\nThis constructor creates a new sendgrid object. The \"credentials\" object should contain:\n\n* `user`: Your sendgrid username\n* `key`: Your sendgrid API key/password\n\n### sendgrid.send(options, cb)\n\nSends an email. Options are the same as those of the [sendgrid json web api](http://sendgrid.com/documentation/display/api/WebMail). Common ones include:\n\n* **to:** The recipient of the email.\n* **from:** The email address to reply back to.\n* **subject:** The subject of the email.\n* **html:** The body of the email, if it's intended to be treated like html.\n* **text:** The body of the email, if it's intended to be treated like plaintext.\n\n## Tests:\n\nIn order to run the tests, sendgrid needs a user, api key, and email addresses to send to and from. Before running these tests, open `./test/config-template.json`, edit it to contain your credentials and information, and save it as `./test/config.json`.\n\nThen, you may run the tests with nodeunit:\n\n    nodeunit test/*.js\n\n**Author:** Joshua Holbrook\n","readmeFilename":"README.md"}