{"_id":"@acymailing/sending-service","_rev":"1-1e01678f3dc1d4cbae774b7332967ec1","name":"@acymailing/sending-service","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@acymailing/sending-service","version":"1.0.0","description":"AcyMailing sending service for Node.js","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"rm -rf ./dist && tsc && node index.js","build":"rm -rf ./dist && tsc","pack":"rm -rf acymailing-sending-service-1.0.0.tgz && rm -rf ./dist && npm run build && npm pack"},"author":{"name":"acymailing"},"license":"ISC","type":"module","dependencies":{"mime":"^4.0.1","mimetext":"^3.0.16"},"devDependencies":{"typescript":"^5.3.3"},"gitHead":"fa935964e2500ba0e3675645838311059a59b677","_id":"@acymailing/sending-service@1.0.0","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-s6NpYwCAHQJllxVRxpbg3uE0EzI2Q/y+ZGvd6UyPHG3KLiffFEzan1MS/jGMB4bqg3MEMBkPCJ+NZ0t43H2B5A==","shasum":"55a35d8736d0ed5a240184e1174fb87bbd0514d7","tarball":"https://registry.npmjs.org/@acymailing/sending-service/-/sending-service-1.0.0.tgz","fileCount":14,"unpackedSize":11050,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrLgBuBHJnGauScejUDrExul0uk+N2JYK0qGmEQCkBrwIgdtYDa9qUVaLBiYCYN2Zmhhl1rxS1abjtEloe0RHx7/M="}]},"_npmUser":{"name":"john-acyba","email":"john@acyba.com"},"directories":{},"maintainers":[{"name":"john-acyba","email":"john@acyba.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sending-service_1.0.0_1708528235528_0.2651546608307491"},"_hasShrinkwrap":false},"1.0.1":{"name":"@acymailing/sending-service","version":"1.0.1","description":"AcyMailing sending service for Node.js","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"rm -rf ./dist && tsc && node index.js","build":"rm -rf ./dist && tsc","pack":"rm -rf acymailing-sending-service-1.0.0.tgz && rm -rf ./dist && npm run build && npm pack"},"author":{"name":"acymailing"},"license":"ISC","type":"module","dependencies":{"mime":"^4.0.1","mimetext":"^3.0.16"},"devDependencies":{"typescript":"^5.3.3"},"gitHead":"2e6acd210c2746feb5fbe7be78f20f92c65db3cb","_id":"@acymailing/sending-service@1.0.1","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-RhP/vBIzsNeY4dZco03h85OLyVAVEHua5ueLle0UKS3hIeR7It4BLoGMHMaRiYWiuTWSfeT8XEYBDUwoviuV0A==","shasum":"f0884a049fa6ac8e539cdfa3722261541191024f","tarball":"https://registry.npmjs.org/@acymailing/sending-service/-/sending-service-1.0.1.tgz","fileCount":14,"unpackedSize":11803,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCm7CeppNqYRG3MCq7eIamAiU3f/u0533TG0KQYJiIaKwIhAMmS5Wy1WKiNLR4pbGLRU7tHPVx+V50yv2xS2cOXfXf+"}]},"_npmUser":{"name":"john-acyba","email":"john@acyba.com"},"directories":{},"maintainers":[{"name":"john-acyba","email":"john@acyba.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sending-service_1.0.1_1709827591017_0.1046782487027611"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-21T15:10:35.422Z","1.0.0":"2024-02-21T15:10:35.677Z","modified":"2024-03-07T16:06:31.629Z","1.0.1":"2024-03-07T16:06:31.192Z"},"maintainers":[{"name":"john-acyba","email":"john@acyba.com"}],"description":"AcyMailing sending service for Node.js","author":{"name":"acymailing"},"license":"ISC","readme":"# AcyMailing node library\n\n## Installation\n\n```bash\nnpm i @acymailing/sending-service\n```\n\n## Usage\n\n```javascript\nimport {AcyMailer} from '@acymailing/sending-service';\n\nconst mailer = new AcyMailer('your-license-key');\n\nconst domain = await mailer.addDomain({name: 'example.com'});\n\nconst email = {\n    to: 'email@recipients.com',\n    subject: 'test email from node lib',\n    body: '<h1>Hello</h1>, this is a test email from the node lib', // altBody?: string,\n    fromEmail: 'email@example.com',\n    fromName: 'Email example',\n    replyToEmail: 'no-reply@example.com',\n    replyToName: 'Email no-reply',\n    bounceEmail: 'bounce@example.com', // cc?: string[];\n    attachments: [\n        '/paht/to/attachment.png'\n    ]\n};\n\nconst response = await mailer.sendEmail(email);\n```\n\n## Development\n\nInstall the dependencies:\n\n```bash\nnpm install\n```\n\nBuild and test:\n\n```bash\nnpm run test\n```\n\n\n","readmeFilename":"README.md"}