{"_id":"nodemailer-handlebars","_rev":"2-4a2dc1654e4dbf1b10e257229d54da92","name":"nodemailer-handlebars","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"nodemailer-handlebars","version":"1.0.0","description":"A plugin for nodemailer that uses express-handlebars view engine to generate emails","main":"index.js","scripts":{"test":"mocha --recursive test/tests"},"keywords":["nodemailer","html","express-handlebars","handlebars","partials","templates","email-templates","nodemailer-plugins","nodemailer-handlebars"],"author":{"name":"Accime Esterling","email":"esterlinaccime@gmail.com"},"homepage":"https://github.com/accimeesterlin/nodemailer-express-handlebars","bugs":{"url":"https://github.com/accimeesterlin/nodemailer-express-handlebars/issues"},"repository":{"type":"git","url":"git+https://github.com/accimeesterlin/nodemailer-express-handlebars.git"},"license":"MIT","dependencies":{"express-handlebars":"^3.0.0"},"devDependencies":{"chai":"^4.1.2","mocha":"^5.0.0","nodemailer":"^4.4.2","nodemailer-stub-transport":"^1.1.0"},"gitHead":"642f191728698f1038e5716d567dbd00597623ad","_id":"nodemailer-handlebars@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"accimeesterlin","email":"accimeesterlin@yahoo.com"},"dist":{"integrity":"sha512-k9e/upHYt7qJr5cPDR/3ktUSQSwpfOyw+ufpVfoNLri7vJpWeRJ7y5tJB49GyPvbc2ae44LRP0cAmHcr3vXLhg==","shasum":"44ba3ed142e49eabe4e398050e59aa8d1c9d83af","tarball":"https://registry.npmjs.org/nodemailer-handlebars/-/nodemailer-handlebars-1.0.0.tgz","fileCount":8,"unpackedSize":6300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcezXFCRA9TVsSAnZWagAAeogQAI8bPvyORGt38ZvX7rVV\n50Z32yhE/S7rcBLi7iem8MbuxCHu3lNMPkhZ5dVKEYsvUWSRVqzbVO+1f6yQ\n6x08CpIDYYyzQBySpkcvxUOgJeMDxJNhNx+SPxnzvXhs8mgCngTamAm0ibTT\nrloIHKw58yUR0AR7EBLEPtmXaSl27StiEeYWG/pRrY0NBkpSKr4zZFj6Jbn/\nGFp9Sm1EJjM6mAtHY1Wqe4ukoVyWDNPwqIyVu8xo248UldX1KVch4ec0sbox\nrKmoOGld8M42jXY3V99Ck459XAqG3dglwyZ7PFJzPR/eMOXPH1Spj/czLaSC\n/QxBBWIxabHsqU8EpJMJhc1rMTjGA8T83062ZBw/VDoHQLpEQmelaR9b4//P\n7snQuyYY9rBCBGhVvA7T9VznqPLlQnRtCQrJSziYfVvRy5+5bhhMP6kAnaJt\n7GWfNuRYKO8SuqujV7sgDj5Ikjo/xNTJQrL6tpxR+dc8fa0HxKMSCYM/9lMN\nj/l0FmUGLbJ1TO9cSuGKy1LgNchAVWn4UcOiWvx39plTNL3ipmidr0QPDhPD\nVl03VIh+XSx0Qk+6vnbZZixDNaKyZSHwHND0TKeeoXEHrtA3HlDOXWwnDn6H\nXERzo/deMwh0kjl2x7qfazShDfQKUF9ubLIPvm0w6v0B7BD7qZYBfvcECETF\n6ych\r\n=9+eL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0vF70RYL1zOosM7H+fi9bIw0gpKnbDJRXwgA1Xm4x4AiEAnZuWBEvD56vpEz+0R9qjJI6RjWXnXxVDPk6+Sg/bgYc="}]},"maintainers":[{"name":"accimeesterlin","email":"accimeesterlin@yahoo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nodemailer-handlebars_1.0.0_1551578564723_0.4775617032632262"},"_hasShrinkwrap":false},"1.0.1":{"name":"nodemailer-handlebars","version":"1.0.1","description":"A plugin for nodemailer that uses express-handlebars view engine to generate emails","main":"index.js","scripts":{"test":"mocha --recursive test/tests"},"keywords":["nodemailer","html","express-handlebars","handlebars","partials","templates","email-templates","nodemailer-plugins","nodemailer-handlebars"],"author":{"name":"Accime Esterling","email":"esterlinaccime@gmail.com"},"homepage":"https://github.com/accimeesterlin/nodemailer-express-handlebars","bugs":{"url":"https://github.com/accimeesterlin/nodemailer-express-handlebars/issues"},"repository":{"type":"git","url":"git+https://github.com/accimeesterlin/nodemailer-express-handlebars.git"},"license":"MIT","dependencies":{"express-handlebars":"^3.0.0"},"devDependencies":{"chai":"^4.1.2","mocha":"^5.0.0","nodemailer":"^4.4.2","nodemailer-stub-transport":"^1.1.0"},"gitHead":"d0e208a0dc82f94a6f49ae305dcaa17e5cd04108","_id":"nodemailer-handlebars@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"accimeesterlin","email":"accimeesterlin@yahoo.com"},"dist":{"integrity":"sha512-doSPCuWpHXoU1/EvmzsNhMlesk/F4zA0PIWdDKqwgEMGdjgCRazYC5VrWCt28VnwiWS8FrqE/Su3HwaozjY8NQ==","shasum":"55abc0d1fbb05351972738efd8a48ee97d1b4ba0","tarball":"https://registry.npmjs.org/nodemailer-handlebars/-/nodemailer-handlebars-1.0.1.tgz","fileCount":8,"unpackedSize":6371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcezaOCRA9TVsSAnZWagAAErQP+QD+Tu99PMDL5j103Wjl\niqkaZ2O74RcxBAWVa7eGutCNmbgivhyg8GM6jBr6i/1Kai+w2K4Co/OVULI3\nyJEhqzch1neh02lIoHRUvItm0MdXSrcAm6U6s/a/9M3QtWmXiLW2dHip5llP\n0uMphKJjB4e21BouVpoWckweSCx6jz7CxsMw2gDZNckoL9DKtfUZmMWdb4QP\nbgwZspmfbJcXcJpyQxajT2l/1xmsjmqZplZ5w6OnIrB/l3Tgahewd66EX5JE\nMQvczUFJ/MpbQr3E4Dh7ns3AKMEis0PsmtlWdZWi5y0tu5onSaRmKeRqQSWW\nbm72TElPucgSJppLBivi0x3p8+tJrCdt3+2PoWfnAtRWJbcqokWYfUvssmik\nwq8DwAtRgL2/l7YJRvn4GDjxkllQIkhlpfh7x6JlTbVvJUDaFlkL2bPM7L61\nqSgRXD7cLPRUOtRM3u+RclKcpVBljkErnGCukJiRmt44sGOF/nRsg+ExXF5i\nT6yeeiZQCCAz71z8YA5GvChaelotAsTb8HW8i5N7r9B5pc0E2TBpLr6q2uu9\nJAVTk2Vx6mmN4kShOjzrckPKrca+wGh+UM6f6b/dhpWlknMncGy2LTofxP40\nsR81ajN+zQwbKnZYee39iafRHwGTXmSQMxDEqbCeX27IqhrY8Vwt7feUysYE\nn1wn\r\n=8saq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrhmujlrYhDpcFyyVFNaMJRuuEhGILnS51a9Uma8qRXQIhALVWSif8LySs1Lh/KueqnbQtJJcdKR/TTYAGBQEV1dLQ"}]},"maintainers":[{"name":"accimeesterlin","email":"accimeesterlin@yahoo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nodemailer-handlebars_1.0.1_1551578766192_0.3629774738020932"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-03T02:02:44.722Z","1.0.0":"2019-03-03T02:02:44.868Z","modified":"2022-05-11T07:56:57.065Z","1.0.1":"2019-03-03T02:06:06.450Z"},"maintainers":[{"name":"accimeesterlin","email":"accimeesterlin@yahoo.com"}],"description":"A plugin for nodemailer that uses express-handlebars view engine to generate emails","homepage":"https://github.com/accimeesterlin/nodemailer-express-handlebars","keywords":["nodemailer","html","express-handlebars","handlebars","partials","templates","email-templates","nodemailer-plugins","nodemailer-handlebars"],"repository":{"type":"git","url":"git+https://github.com/accimeesterlin/nodemailer-express-handlebars.git"},"author":{"name":"Accime Esterling","email":"esterlinaccime@gmail.com"},"bugs":{"url":"https://github.com/accimeesterlin/nodemailer-express-handlebars/issues"},"license":"MIT","readme":"# Express Handlebars plugin for Nodemailer\nThis plugin works with nodemailer 4.x. And uses the [express-handlebars](https://github.com/ericf/express-handlebars) view\nengine to generate html emails.\n\n# Install from npm\n```bash\nnpm install nodemailer-handlebars\n```\n# Usage\n```javascript\n//reference the plugin\nvar hbs = require('nodemailer-handlebars');\n//attach the plugin to the nodemailer transporter\ntransporter.use('compile', hbs(options));\n//send mail with options\nvar mail = {\n   from: 'from@domain.com',\n   to: 'to@domain.com',\n   subject: 'Test',\n   template: 'email',\n   context: {\n       name: 'Name'\n   }\n}\ntransporter.sendMail(mail);\n```\n## Plugin Options\nThe plugin expects the following options:\n* __viewEngine (required)__ either the express-handlebars view engine instance or [options for the view engine](https://github.com/accimeesterlin/nodemailer-express-handlebars#configuration-and-defaults)\n* __viewPath (required)__ provides the path to the directory where your views are\n* __extName__ the extension of the views to use (defaults to `.handlebars`)\n\n## Mail options\nSet the template and values properties on the mail object before calling `sendMail`\n* __template__ the name of the template file to use\n* __context__ this will be passed to the view engine as the context as well as view engine options see [here]([https://github.com/ericf/express-handlebars](https://github.com/accimeesterlin/nodemailer-express-handlebars)#renderviewviewpath-optionscallback-callback)\n\n# License\nMIT\n","readmeFilename":"README.md"}