{"_id":"mailpress","_rev":"39-03e73eacb4826bbe94d8ee1f0896ea42","name":"mailpress","description":"A wiring up of node-mailer to templates.","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"mailpress","version":"0.0.1","description":"A wiring up of node-mailer to templates.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"keywords":["node","mailer","templates","mustache"],"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"homepage":"https://github.com/jakswa/node-mailpress","dependencies":{"node-mailer":"~0.1.1","node-config":"0.0.2","mustache":"~0.8.1","underscore":"~1.6.0","q":"~1.0.1"},"_id":"mailpress@0.0.1","dist":{"shasum":"5771d165385c6e27676904acd9031259b7ffcfd6","tarball":"https://registry.npmjs.org/mailpress/-/mailpress-0.0.1.tgz","integrity":"sha512-ZEM7OIxMlp81262XvvuHnOD+zoR5fDvhO0jy9kMSbuY8CZKTPXbkvbBNEA8lj+zXmOyGvJk9rLlFWPJtnktE/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFPxs7xK+BwwetlG2Tvif1RcdysPnO/fNr0Ae3VWfcrVAiApv+22y3b/u4o6QLLJSoE4myd2oCAPV1uo7VwcPEqgmA=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jakswa","email":"jakswa@gmail.com"},"maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}]},"0.0.2":{"name":"mailpress","version":"0.0.2","description":"A wiring up of node-mailer to templates.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"keywords":["node","mailer","templates","mustache"],"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"homepage":"https://github.com/jakswa/node-mailpress","dependencies":{"node-mailer":"~0.1.1","node-config":"0.0.2","mustache":"~0.8.1","underscore":"~1.6.0","q":"~1.0.1"},"_id":"mailpress@0.0.2","dist":{"shasum":"51a6799a18ae102c455a8503729ddf378e4540ef","tarball":"https://registry.npmjs.org/mailpress/-/mailpress-0.0.2.tgz","integrity":"sha512-+lgfmp3vuUgYglj1qxcwRkttQgMpnJaK5NpTGRRPsqc24HqH0ge49z77C2S7K486ZZ/hVgV4088Cnjfkjsp80Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxrPIEU/RwhgJBam5lOMWCYMEV1NpCAsip2889N2yZtQIgYCpLOQOayg10SUdS0gNfkd0dR3N8fYgH/QgQK5uIfrg="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jakswa","email":"jakswa@gmail.com"},"maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}]},"0.0.3":{"name":"mailpress","version":"0.0.3","description":"A wiring up of node-mailer to templates.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"keywords":["node","mailer","templates","mustache"],"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"homepage":"https://github.com/jakswa/node-mailpress","dependencies":{"node-mailer":"~0.1.1","node-config":"0.0.2","mustache":"~0.8.1","underscore":"~1.6.0","q":"~1.0.1"},"_id":"mailpress@0.0.3","dist":{"shasum":"6a0114b1e6933713334ddf23f3c1878d652426f4","tarball":"https://registry.npmjs.org/mailpress/-/mailpress-0.0.3.tgz","integrity":"sha512-yGZMAj1W9NdoP2Za5s2DFxx56TcmKrHfHdltHBbNxLmJoHV8CbqJMsInsAJc35SsfZiex7CltCZ+u6awmdVAuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtYCKUoNES1hTD5Wgoc2kxSOd8ivy37bl9uc2+DMy7/AiEAg/78O89hl9SK6Xs54F8gA4b0oymfypxLqLTM6K9aS2A="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jakswa","email":"jakswa@gmail.com"},"maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}]},"0.0.4":{"name":"mailpress","version":"0.0.4","description":"A wiring up of node-mailer to templates.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"keywords":["node","mailer","templates","mustache"],"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"homepage":"https://github.com/jakswa/node-mailpress","dependencies":{"node-mailer":"~0.1.1","node-config":"0.0.2","mustache":"~0.8.1","underscore":"~1.6.0","q":"~1.0.1"},"_id":"mailpress@0.0.4","dist":{"shasum":"3bd4d06d10410f8849e37adcd3bbdbdeff0f7f5d","tarball":"https://registry.npmjs.org/mailpress/-/mailpress-0.0.4.tgz","integrity":"sha512-w00YNxKlW4/jJ5G0slGo+kPc7L3WY800ODOX20wc4rH63VMTQvwW9fghgoqOfq7aJxB1MoAhHAVgSyG8zlB5SQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDM6qIssgCYYrjZCRAPthqxxkZBHouCAqHob8mYosbycwIhALFYmpn/0pF43A9Y541/5yByFocEdIgTEtzfslMmWJ0x"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jakswa","email":"jakswa@gmail.com"},"maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}]},"0.0.5":{"name":"mailpress","version":"0.0.5","description":"A wiring up of node-mailer to templates.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"keywords":["node","mailer","templates","mustache"],"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"homepage":"https://github.com/jakswa/node-mailpress","dependencies":{"node-mailer":"~0.1.1","node-config":"0.0.2","mustache":"~0.8.1","underscore":"~1.6.0","q":"~1.0.1"},"_id":"mailpress@0.0.5","dist":{"shasum":"b6c665b4fb56eb52097442e7e814b15faec38767","tarball":"https://registry.npmjs.org/mailpress/-/mailpress-0.0.5.tgz","integrity":"sha512-H1aSNoBz4ctHXAUXNQhZR6r6bQgpkJSXhSNm/aqd0S+NTLFplWaTm4JKy9WyOG+YYeyhW4scltwJQiVgpgOO9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd4Dp29Ru31besRwMB+D6+A6IN7T2DSFpBlGDauU9+1AIhAP4qDPnRvOOAzfEQQAJ3tjOikVvFbJ1Mhi0XWCefNJq2"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jakswa","email":"jakswa@gmail.com"},"maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}]},"0.0.6":{"name":"mailpress","version":"0.0.6","description":"A wiring up of node-mailer to templates.","main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --reporter nyan"},"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"keywords":["node","mailer","templates","mustache"],"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"homepage":"https://github.com/jakswa/node-mailpress","dependencies":{"node-config":"0.0.2","mustache":"~0.8.1","underscore":"~1.6.0","config":"~0.4.35","nodemailer":"~0.6.3","bluebird":"~1.2.3"},"devDependencies":{"mocha":"~1.18.2","sinon":"~1.9.1"},"_id":"mailpress@0.0.6","dist":{"shasum":"314808ba854bb534c9c7807c73266c2f64ae387a","tarball":"https://registry.npmjs.org/mailpress/-/mailpress-0.0.6.tgz","integrity":"sha512-9En5f9VOnFmNh4dODf/a4/K87XnDybJ0h9c+LmpoYNJmKbv5j2P5EKv9VyI/8W4UsVQ5lcg2BQTlcDfcwOcedg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCJm41JxNhmRL9QFTZNSGuCl9TS0xXDKmHRx4IcqotGwIhAPPG7OEROJ3qLSXJ0CHbarueMc89kOabF4XDePs79dKO"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jakswa","email":"jakswa@gmail.com"},"maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}]},"0.0.7":{"name":"mailpress","version":"0.0.7","description":"A wiring up of node-mailer to templates.","main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --reporter nyan"},"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"keywords":["node","mailer","templates","mustache"],"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"homepage":"https://github.com/jakswa/node-mailpress","dependencies":{"node-config":"0.0.2","mustache":"~0.8.1","underscore":"~1.6.0","config":"~0.4.35","nodemailer":"~0.6.3","bluebird":"~1.2.3"},"devDependencies":{"mocha":"~1.18.2","sinon":"~1.9.1"},"_id":"mailpress@0.0.7","dist":{"shasum":"3420e09ccc2d6b285c1c433216baea3bc670445c","tarball":"https://registry.npmjs.org/mailpress/-/mailpress-0.0.7.tgz","integrity":"sha512-9po6cMXbg/iCligLZgpomAkuJvrM/uJd8Lx2hnx3SQTxgdHIw6ff9dOYy4m7GlnZ9rifdOBVbIPFNIGzgb3JYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaKLXKq0p+e0mZS8cvjp9XJNBbWpj2dc56xFJXU3xPgAIhAJFnZSt8jhDGBoan2/kqx42hx7IqpQBYjanYmLhJdNcV"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jakswa","email":"jakswa@gmail.com"},"maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}]},"0.0.9":{"name":"mailpress","version":"0.0.9","description":"A wiring up of node-mailer to templates.","main":"index.js","scripts":{"test":"npm install && ./node_modules/.bin/mocha --reporter spec"},"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"keywords":["node","mailer","templates","mustache"],"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"homepage":"https://github.com/jakswa/node-mailpress","dependencies":{"node-config":"0.0.2","mustache":"~0.8.1","underscore":"~1.6.0","config":"~0.4.35","nodemailer":"~0.6.3","bluebird":"~1.2.3","stack-trace":"0.0.9"},"devDependencies":{"mocha":"~1.18.2","sinon":"~1.9.1"},"_id":"mailpress@0.0.9","dist":{"shasum":"2958bed7b9ff3a155555b5b8beb7a934ff416364","tarball":"https://registry.npmjs.org/mailpress/-/mailpress-0.0.9.tgz","integrity":"sha512-NiOjcCXwj4UgrRHNrcE8dqzzUXYs8urU1uoBqQU6lU/dKs3wCFRZ2TCQptKxX68U0Zg+c/DdnasW4NUtQwDvdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG7bwhlXt02Vp5LQzumHXHUKlaWI3oH6nlx/zwzgutwgIgPcvYfsf8Fb2/jmFCKYMOAsq2Tq2YK/MgqBpDRNAuEIc="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jakswa","email":"jakswa@gmail.com"},"maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}]}},"readme":"node-mailpress\n==============\n\nWiring up of [node-mailer](https://github.com/andris9/Nodemailer) to templates. Plop in the module, insert configs, and some template files, and you're ready to churn out some emails! Comes packaged with default naming expectations for quickly making mailers. For example, a `welcome.js` mailer will have template files named `mailer.html` and `mailer.txt` in the `templateDir`. You can override such expectations when creating a mailer.\n\n## Requirements\n\n - [`node-config`](https://github.com/lorenwest/node-config): All our projects currently use this to configure our apps. Apologies if it doesn't fit in with your project. Easy enough to remove, if there's need.\n - [`mustache`](http://mustache.github.io/): Currently, this only supports mustache templates. \n\n## Usage:\n\n- `npm install --save mailpress`\n- add `mailer` config section to your `node-config`—an example for Amazon SES is below.\n- create your first mailer module\n- create corresponding templates in the templateDir you have set (or in `server/views/mail` if you're going by the package defaults)\n- require in your mailer and call `mailer.sendMail(templateLocals, [configs])` on it\n\n## Config Example\n\n```javascript\nmailer: {\n        templateDir: \"relative/to/project/root\",\n        transport: \"SMTP\",\n        transportOpts: {\n            service: \"SES\",\n            auth: {\n                user: \"<your user>\",\n                pass: \"<your pass>\"\n            }\n        }\n    }\n}\n```\n\n## Mailer Example\n\n```javascript\n// welcome.js\nvar Mailpress = require('mailpress');\n\nvar defaults = {\n  // to manually specify which template files to use for a mailer:\n  // (this changes the mailer to use bob.html and bob.txt in the templateDir)\n  //  templateBaseName: 'bob',\n  // to override default extension expectations for templates:\n  // (to test the text-only version, for example)\n  //  templateExtensions: {text: '.txt'},\n  \n  \n  subject: 'Default subject line',\n  from: 'noreply@someemail.com'\n};\n\nmodule.exports = new Mailpress(defaults);\n```\nand to use it:\n```javascript\n// in some other module\nvar myMailer = require('./welcome');\nmyMailer.sendMail({\n  name: 'Jake Swanson', \n  welcomeText: 'Hello Mr. Swanson'\n},{\n  to: 'jakeswanson@fakemail.com',\n  subject: 'Setting subject line for this email!'\n});\n```\n\nand here's a set of corresponding [mustache](http://mustache.github.io/) template examples:\n\n**NOTE**: The base name of template files must be same as the mailer base name, unless you override\nit in the mailer defaults. So, for `welcome.js`, you would name them `welcome.html` and `welcome.txt`\n```html\n<!-- these two are placed in 'templateDir' directory specified in the config\n  -- e.g. relative/to/root/welcome.html\n     and  relative/to/root/welcome.txt\n  -->\n<h1>{{welcomeText}}</h1>\n<p>Hey there {{name}}, this email is crafted for you.</p>\n```\n\n```\n{{welcomeText}}!\nHey there {{name}}, this email is crafted for you.\n```\n","maintainers":[{"name":"jakswa","email":"jakswa@gmail.com"}],"time":{"modified":"2022-06-19T15:28:20.754Z","created":"2014-04-21T14:56:46.106Z","0.0.1":"2014-04-21T14:58:04.358Z","0.0.2":"2014-04-23T00:03:13.834Z","0.0.3":"2014-04-23T00:12:04.949Z","0.0.4":"2014-04-23T15:09:54.029Z","0.0.5":"2014-04-24T04:12:09.931Z","0.0.6":"2014-04-25T17:01:12.007Z","0.0.7":"2014-04-25T18:04:36.646Z","0.0.9":"2014-06-24T19:25:47.032Z"},"readmeFilename":"README.md","homepage":"https://github.com/jakswa/node-mailpress","keywords":["node","mailer","templates","mustache"],"repository":{"type":"git","url":"git@github.com:jakswa/node-mailpress.git"},"author":{"name":"Jake Swanson","email":"jakswa@gmail.com"},"bugs":{"url":"https://github.com/jakswa/node-mailpress/issues"},"license":"BSD-2-Clause"}