{"_id":"nuxt-nodemailer","_rev":"4-57397c28ed4df740fc6e0aff5d136fc1","name":"nuxt-nodemailer","dist-tags":{"latest":"1.1.4"},"versions":{"1.1.0":{"name":"nuxt-nodemailer","version":"1.1.0","author":{"name":"Petr Klein","email":"petr@kleinpetr.com"},"license":"MIT","_id":"nuxt-nodemailer@1.1.0","maintainers":[{"name":"kleinpetr","email":"petr@kleinpetr.com"}],"homepage":"https://github.com/kleinpetr/nuxt-nodemailer#readme","bugs":{"url":"https://github.com/kleinpetr/nuxt-nodemailer/issues"},"dist":{"shasum":"9605ee09d8ba64121e5f93b1a644b76527a1f2d0","tarball":"https://registry.npmjs.org/nuxt-nodemailer/-/nuxt-nodemailer-1.1.0.tgz","fileCount":11,"integrity":"sha512-AvkMWZjBNBpGOO6PhZu+0PpqHCd+zEFXBlZz4Ps3JT4SQ3BrdpRgJRGoNJk449Fjp7uWxAhxXiITG7OEbwhq6w==","signatures":[{"sig":"MEYCIQDIRcSg1cpUaJWPD101y0htDhm2ryKHxWGx6X31+fPdXAIhAJf6dsvF13huIgv4whpmWSXQdibOtAh55rbcJgEniGqH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6916},"main":"./dist/module.cjs","type":"module","types":"./dist/types.d.ts","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"gitHead":"0dacef5d2e3394f1fa05dbc42fd2a7c573fd36ee","scripts":{"dev":"nuxi dev playground","lint":"eslint .","prepack":"nuxt-module-build build","release":"npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground"},"_npmUser":{"name":"kleinpetr","email":"petr@kleinpetr.com"},"repository":{"url":"git+https://github.com/kleinpetr/nuxt-nodemailer.git","type":"git"},"_npmVersion":"9.5.1","description":"nodemailer Nuxt Module","directories":{},"_nodeVersion":"18.16.0","dependencies":{"@nuxt/kit":"^3.11.2"},"_hasShrinkwrap":false,"devDependencies":{"nuxt":"^3.11.2","eslint":"^9.3.0","vue-tsc":"^2.0.19","nodemailer":"^6.9.13","typescript":"latest","@types/node":"^20.12.12","changelogen":"^0.5.5","@nuxt/schema":"^3.11.2","@nuxt/devtools":"^1.3.2","@nuxt/test-utils":"^3.13.1","@types/nodemailer":"^6.4.15","@nuxt/eslint-config":"^0.3.13","@nuxt/module-builder":"^0.7.0"},"peerDependencies":{"nodemailer":"^6.9.13"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-nodemailer_1.1.0_1716927746827_0.7523548318071174","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"nuxt-nodemailer","version":"1.1.1","author":{"name":"Petr Klein","email":"petr@kleinpetr.com"},"license":"MIT","_id":"nuxt-nodemailer@1.1.1","maintainers":[{"name":"kleinpetr","email":"petr@kleinpetr.com"}],"homepage":"https://github.com/kleinpetr/nuxt-nodemailer#readme","bugs":{"url":"https://github.com/kleinpetr/nuxt-nodemailer/issues"},"dist":{"shasum":"b1bac1ee0202ca724ea4f18a1ac5cdafd373ed52","tarball":"https://registry.npmjs.org/nuxt-nodemailer/-/nuxt-nodemailer-1.1.1.tgz","fileCount":11,"integrity":"sha512-t3AtmzMvUKKeaMysbkz0Jhd6JAlQ8oeppeqpLAIb4gSzmnjvNl3wG3nMijB7wjOXBRAlOgAqHoQTF2pL/IcalA==","signatures":[{"sig":"MEUCIHsb0NEyhMEos77I03wdriaXgSCOc7nRrgw1FuNaP8q9AiEAr15TKfme+/TCAGWSKvZII8glNOB/bIoO4OwIkAht214=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6965},"main":"./dist/module.cjs","type":"module","types":"./dist/types.d.ts","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"gitHead":"82685da17f3c5f87c008e098343843e8bfac8a58","scripts":{"dev":"nuxi dev playground","lint":"eslint .","prepack":"nuxt-module-build build","release":"npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground"},"_npmUser":{"name":"kleinpetr","email":"petr@kleinpetr.com"},"repository":{"url":"git+https://github.com/kleinpetr/nuxt-nodemailer.git","type":"git"},"_npmVersion":"9.5.1","description":"nodemailer Nuxt Module","directories":{},"_nodeVersion":"18.16.0","dependencies":{"@nuxt/kit":"^3.11.2"},"_hasShrinkwrap":false,"devDependencies":{"nuxt":"^3.11.2","eslint":"^9.3.0","vue-tsc":"^2.0.19","nodemailer":"^6.9.13","typescript":"latest","@types/node":"^20.12.12","changelogen":"^0.5.5","@nuxt/schema":"^3.11.2","@nuxt/devtools":"^1.3.2","@nuxt/test-utils":"^3.13.1","@types/nodemailer":"^6.4.15","@nuxt/eslint-config":"^0.3.13","@nuxt/module-builder":"^0.7.0"},"peerDependencies":{"nodemailer":"^6.9.13"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-nodemailer_1.1.1_1716998744690_0.24751970066031825","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"nuxt-nodemailer","version":"1.1.2","keywords":["email","javascript","typescript","mail","nodemailer","npm-package","nuxt","nuxt-module","nuxt3","nuxt3-module","server","webdevelopment"],"author":{"name":"Petr Klein","email":"petr@kleinpetr.com"},"license":"MIT","_id":"nuxt-nodemailer@1.1.2","maintainers":[{"name":"kleinpetr","email":"petr@kleinpetr.com"}],"homepage":"https://github.com/kleinpetr/nuxt-nodemailer#readme","bugs":{"url":"https://github.com/kleinpetr/nuxt-nodemailer/issues"},"dist":{"shasum":"d83178a6bc3e916b849eff395251ad2da0c06d5e","tarball":"https://registry.npmjs.org/nuxt-nodemailer/-/nuxt-nodemailer-1.1.2.tgz","fileCount":11,"integrity":"sha512-oYi0AnEZu56euRxJ/G7NAQLmRct9ORgKvxF3AcAbVlxfKJJQ7kNPZnlymQbzg9F/SLBlQgSE+mSQR/3Wz6JOIg==","signatures":[{"sig":"MEYCIQDTWMTbfiqPeSXKOanTs+nNTqQsbrC26EtCuH1HpBhT7wIhAKNroalYRXKf4Du+GgLIpctopaH63QdYlNPSLeu/wEQ8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8244},"main":"./dist/module.cjs","type":"module","types":"./dist/types.d.ts","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"gitHead":"b97e6bce8ab9d916eba029946f422c710adc9a16","scripts":{"dev":"nuxi dev playground","lint":"eslint .","prepack":"nuxt-module-build build","release":"npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground"},"_npmUser":{"name":"kleinpetr","email":"petr@kleinpetr.com"},"repository":{"url":"git+https://github.com/kleinpetr/nuxt-nodemailer.git","type":"git"},"_npmVersion":"9.5.1","description":"nodemailer Nuxt Module","directories":{},"_nodeVersion":"18.16.0","dependencies":{"@nuxt/kit":"^3.11.2"},"_hasShrinkwrap":false,"devDependencies":{"nuxt":"^3.11.2","eslint":"^9.3.0","vue-tsc":"^2.0.19","nodemailer":"^6.9.13","typescript":"latest","@types/node":"^20.12.12","changelogen":"^0.5.5","@nuxt/schema":"^3.11.2","@nuxt/devtools":"^1.3.2","@nuxt/test-utils":"^3.13.1","@types/nodemailer":"^6.4.15","@nuxt/eslint-config":"^0.3.13","@nuxt/module-builder":"^0.7.0"},"peerDependencies":{"nodemailer":"^6.9.13"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-nodemailer_1.1.2_1717008390471_0.03752141955207855","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"nuxt-nodemailer","version":"1.1.4","description":"nodemailer Nuxt Module","repository":{"type":"git","url":"git+https://github.com/kleinpetr/nuxt-nodemailer.git"},"license":"MIT","author":{"name":"Petr Klein","email":"petr@kleinpetr.com"},"type":"module","exports":{".":{"import":"./dist/module.mjs"}},"main":"./dist/module.mjs","keywords":["email","javascript","typescript","mail","nodemailer","npm-package","nuxt","nuxt-module","nuxt3","nuxt3-module","server","webdevelopment"],"scripts":{"prepack":"nuxt-module-build build","dev":"nuxi dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground","release":"npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags","lint":"eslint .","lint:fix":"eslint . --fix","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit"},"dependencies":{"@nuxt/kit":"^3.11.2","@types/nodemailer":"^7.0.2"},"peerDependencies":{"nodemailer":"^7.0.6"},"devDependencies":{"@nuxt/devtools":"^1.7.0","@nuxt/eslint-config":"^0.3.13","@nuxt/module-builder":"^1.0.2","@nuxt/schema":"^3.11.2","@nuxt/test-utils":"^3.19.2","@types/node":"^20.19.19","changelogen":"^0.5.7","eslint":"^8.57.1","nodemailer":"^7.0.9","nuxt":"^3.19.2","typescript":"^5.9.3","vue-tsc":"^2.2.12"},"_id":"nuxt-nodemailer@1.1.4","gitHead":"e24d67434b3525a6d020bd39c029a83096bce2f4","bugs":{"url":"https://github.com/kleinpetr/nuxt-nodemailer/issues"},"homepage":"https://github.com/kleinpetr/nuxt-nodemailer#readme","_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-nIH9dfQ/Z58QtwspetoHJI+XGNraVBW7setEu0f8EJDTLLh2WRMIZgamVRmrF9d10/POT+fLDmQ2N1QEmUwWuw==","shasum":"4e9ead2f94c726313c52bdfd622960bb574a5119","tarball":"https://registry.npmjs.org/nuxt-nodemailer/-/nuxt-nodemailer-1.1.4.tgz","fileCount":8,"unpackedSize":7377,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDazyiD9DW6A3cL3BQilFgpSYdFGJKCamHKKw8vQyh7YAiEAg9JNs+jIPfB9LEi8v4s9sxhEZX/g30bYxOZbI58gIqk="}]},"_npmUser":{"name":"kleinpetr","email":"petr@kleinpetr.com"},"directories":{},"maintainers":[{"name":"kleinpetr","email":"petr@kleinpetr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nuxt-nodemailer_1.1.4_1761247410025_0.5837284766312234"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-28T20:22:26.826Z","modified":"2025-10-23T19:23:30.485Z","1.1.0":"2024-05-28T20:22:26.976Z","1.1.1":"2024-05-29T16:05:44.823Z","1.1.2":"2024-05-29T18:46:30.622Z","1.1.4":"2025-10-23T19:23:30.304Z"},"bugs":{"url":"https://github.com/kleinpetr/nuxt-nodemailer/issues"},"author":{"name":"Petr Klein","email":"petr@kleinpetr.com"},"license":"MIT","homepage":"https://github.com/kleinpetr/nuxt-nodemailer#readme","keywords":["email","javascript","typescript","mail","nodemailer","npm-package","nuxt","nuxt-module","nuxt3","nuxt3-module","server","webdevelopment"],"repository":{"type":"git","url":"git+https://github.com/kleinpetr/nuxt-nodemailer.git"},"description":"nodemailer Nuxt Module","maintainers":[{"name":"kleinpetr","email":"petr@kleinpetr.com"}],"readme":"# nuxt-nodemailer\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n[![Nuxt][nuxt-src]][nuxt-href]\n[![Volta][volta-src]][volta-href]\n\n[![Buy me a coffee][buymecoffee-src]][buymeacoffee-href]\n\n> Adds nodemailer to the Nuxt 3 and 4\n> \n> This module can be used to send emails only from the server-side in Nuxt 3 and 4.\n\n## Features\n- Auto import server composable `useNodeMailer()`\n- Add `sendEmail()` which inherits `from` argument\n- Expose `nodemailer` original instance\n- Using env variables for configuration\n\n<!-- INSTALL/ -->\n## Install\n\n```bash\n# Using ni\nni -D nuxt-nodemailer nodemailer\n\n# Using pnpm\npnpm add -D nuxt-nodemailer nodemailer\n\n# Using yarn\nyarn add --dev nuxt-nodemailer nodemailer\n\n# Using npm\nnpm install --save-dev nuxt-nodemailer nodemailer\n```\n<!-- /INSTALL -->\n\n## Configuration\n\nAdd `nuxt-nodemailer` to the `modules` sections of your `nuxt.config.js`. \n\n> the configuration uses the same options as nodemailer you can find them [here](https://nodemailer.com/smtp/)\n  \n  ```ts\n  export default {\n    modules: [\n      'nuxt-nodemailer'\n    ],\n    nodemailer: {\n      from: '\"John Doe\" <john@doe.com>',\n      host: 'smtp.mailtrap.io',\n      port: 465,\n      secure: true,\n      auth: {\n        user: 'john@doe.com',\n        pass: '',\n      },\n    },\n  }\n```\n\n### Environment Variables\nIt's recommended to use environment variables for sensitive information like passwords.\n\neach option in the `nodemailer` configuration can be overwritten using environment variables. It has to be prefixed with `NUXT_NODEMAILER_` and in uppercase.\n\nFor example, to overwrite the `auth.pass` and `from` options you can use the following environment variables:\n\n```bash\nNUXT_NODEMAILER_AUTH_PASS=yourpassword\nNUXT_NODEMAILER_FROM=\"...\"\n```\n\n> Warning: You can overwrite only existing options in the `nodemailer` configuration in the `nuxt.config.js` file.\n\n\n## Usage\nIn the server event handler, you can use the `useNodeMailer` composable to send emails.\n\n```ts\nexport default defineEventHandler(() => {\n  const { sendMail } = useNodeMailer()\n\n  return sendMail({ subject: 'Nuxt + nodemailer', text: 'Hello from nuxt-nodemailer!', to: 'john@doe.com' })\n})\n```\n> the benefit of using `sendMail` is that it automatically inherits the `from` argument from the configuration and you don't have to specify it every time.\n\nYou can also use the `transport` with your config options or create brand new transport using `nodemailer` instance directly.\n\n```ts\nexport default defineEventHandler(() => {\n  const { transport, nodemailer } = useNodeMailer()\n\n  // you can create a new transport\n  return nodemailer.createTransport(...)\n\n  // or use the existing one\n  return transport.sendMail(...)\n})\n```\n\n[npm-version-src]: https://img.shields.io/npm/v/nuxt-nodemailer/latest.svg?style=flat&colorA=18181B&colorB=28CF8D\n[npm-version-href]: https://npmjs.com/package/nuxt-nodemailer\n\n[npm-downloads-src]: https://img.shields.io/npm/dt/nuxt-nodemailer.svg?style=flat&colorA=18181B&colorB=28CF8D\n[npm-downloads-href]: https://npmjs.com/package/nuxt-nodemailer\n\n[license-src]: https://img.shields.io/npm/l/nuxt-nodemailer.svg?style=flat&colorA=18181B&colorB=28CF8D\n[license-href]: https://npmjs.com/package/nuxt-nodemailer\n\n[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js\n[nuxt-href]: https://nuxt.com\n\n[volta-src]: https://user-images.githubusercontent.com/904724/209143798-32345f6c-3cf8-4e06-9659-f4ace4a6acde.svg\n[volta-href]: https://volta.net/kleinpetr/nuxt-nodemailer\n\n[buymecoffee-src]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\n[buymeacoffee-href]: https://www.buymeacoffee.com/kleinpetr\n","readmeFilename":"README.md"}