{"_id":"@10abdullahbutt/nestjs-mail-service","name":"@10abdullahbutt/nestjs-mail-service","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@10abdullahbutt/nestjs-mail-service","version":"1.0.0","description":"A NestJS module for handling all email-related operations.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","test":"jest","test:watch":"jest --watch","lint":"eslint src --ext .ts","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/boolmind/nestjs-mail-service.git"},"author":{"name":"Boolmind"},"license":"MIT","peerDependencies":{"@nestjs/common":"^9.0.0 || ^10.0.0","@nestjs/core":"^9.0.0 || ^10.0.0"},"dependencies":{"@nestjs/common":"^9.0.0 || ^10.0.0","@nestjs/core":"^9.0.0 || ^10.0.0","nodemailer":"^6.9.0","reflect-metadata":"^0.2.2","rxjs":"^7.8.2"},"devDependencies":{"@nestjs/testing":"^9.0.0 || ^10.0.0","@types/jest":"^29.0.0","@types/node":"^18.0.0","@types/nodemailer":"^6.4.17","@typescript-eslint/eslint-plugin":"^8.36.0","@typescript-eslint/parser":"^8.36.0","eslint":"^8.0.0","eslint-config-prettier":"^10.1.5","eslint-plugin-prettier":"^5.5.1","eslint-plugin-unused-imports":"^4.1.4","husky":"^9.1.7","jest":"^29.0.0","prettier":"^3.6.2","ts-jest":"^29.0.0","ts-node":"^10.0.0","typescript":"^5.0.0"},"_id":"@10abdullahbutt/nestjs-mail-service@1.0.0","gitHead":"da75b5a0e6379ef02f963531b3358db9624205fb","bugs":{"url":"https://github.com/boolmind/nestjs-mail-service/issues"},"homepage":"https://github.com/boolmind/nestjs-mail-service#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-/tpew2GQomLgCKRvh1Ziy1HafUbPCrzdpGx3ay0SMF6LonSialamcilYL9NsC6uaE2cb9/0GVyrpfvxkzOqgOw==","shasum":"742ded72c61a8b0ff418b49ecb8dce95a997c952","tarball":"https://registry.npmjs.org/@10abdullahbutt/nestjs-mail-service/-/nestjs-mail-service-1.0.0.tgz","fileCount":26,"unpackedSize":19565,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD/nrjpPZNrwatehn02TSN6Gm7ypZyHF2tTBHVeE+w7GwIhALKOmMqehMA5cPtOqcnKCika49PtGbQhRUpj0pLE7luX"}]},"_npmUser":{"name":"10abdullahbutt","email":"naeem.dev@boolmind.com","actor":{"name":"10abdullahbutt","email":"naeem.dev@boolmind.com","type":"user"}},"directories":{},"maintainers":[{"name":"10abdullahbutt","email":"naeem.dev@boolmind.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nestjs-mail-service_1.0.0_1752076970534_0.6329755631130707"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-09T16:02:50.468Z","1.0.0":"2025-07-09T16:02:50.707Z","modified":"2025-07-09T16:02:50.983Z"},"maintainers":[{"name":"10abdullahbutt","email":"naeem.dev@boolmind.com"}],"description":"A NestJS module for handling all email-related operations.","homepage":"https://github.com/boolmind/nestjs-mail-service#readme","repository":{"type":"git","url":"git+https://github.com/boolmind/nestjs-mail-service.git"},"author":{"name":"Boolmind"},"bugs":{"url":"https://github.com/boolmind/nestjs-mail-service/issues"},"license":"MIT","readme":"# @10abdullahbutt/nestjs-mail-service\n\nA NestJS module for handling all email-related operations using Nodemailer.\n\n## Features\n- Easy integration with NestJS projects\n- Configurable transport (SMTP, etc.)\n- Send emails with HTML/text\n- Extensible for custom templates and providers\n\n## Installation\n\n```bash\nnpm install @10abdullahbutt/nestjs-mail-service\n```\n\n## Usage\n\n\n### Import the Module\n\n```typescript\nimport { MailServiceModule } from '@10abdullahbutt/nestjs-mail-service';\n\n@Module({\n  imports: [\n    MailServiceModule.forRoot({\n      transport: {\n        host: 'smtp.example.com',\n        port: 587,\n        auth: {\n          user: 'user@example.com',\n          pass: 'password',\n        },\n      },\n      defaults: {\n        from: 'noreply@example.com',\n      },\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\n### Inject and Use the Service\n\n```typescript\nimport { MailService } from '@10abdullahbutt/nestjs-mail-service';\n\n@Injectable()\nexport class UserService {\n  constructor(private readonly mailService: MailService) {}\n\n  async sendWelcomeEmail(to: string) {\n    await this.mailService.sendMail({\n      to,\n      subject: 'Welcome!',\n      text: 'Thank you for joining us.',\n    });\n  }\n}\n```\n\n## Configuration\n\n- `transport`: Nodemailer transport options\n- `defaults`: Default mail options\n\n## Testing\n\n```bash\nnpm run test\n```\n\n## Docker\n\nBuild and test inside Docker:\n\n```bash\ndocker build -t nestjs-mail-service .\n```\n\n## Contributing\n\n1. Fork the repo\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n\n## License\n\nMIT ","readmeFilename":"README.md","_rev":"1-1054acbaac576b44e6f3d5e4b125a712"}