{"_id":"@ashkiani/aws-ses-mailer","_rev":"2-1843e3bc0240954f458802ab73492e6c","name":"@ashkiani/aws-ses-mailer","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@ashkiani/aws-ses-mailer","version":"1.0.0","keywords":["aws-ses"],"author":{"name":"Siavash Ashkiani"},"license":"MIT","_id":"@ashkiani/aws-ses-mailer@1.0.0","maintainers":[{"name":"ashkiani","email":"ashkiani@yahoo.com"}],"homepage":"https://github.com/ashkiani/aws-ses-mailer#readme","bugs":{"url":"https://github.com/ashkiani/aws-ses-mailer/issues"},"dist":{"shasum":"98578d4651516047bdc3af2eca66491995a49e92","tarball":"https://registry.npmjs.org/@ashkiani/aws-ses-mailer/-/aws-ses-mailer-1.0.0.tgz","fileCount":5,"integrity":"sha512-oX3HFLNSxCmCzb+1wMY6qeJr/OviGGDozy1g2i8V2ndmwQ3juFMzyszlUkpyxgMJJOS+eWb0OOvDzMYuptchTQ==","signatures":[{"sig":"MEYCIQCi6OwE7J1BDM89Sja9EMcUuTn+wMs325D1v3jmIZqxxAIhAPjpCIcLC8AJvxT1s29XedQkxWIBVpHi2mnJHkQdYcXo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5565},"main":"index.js","gitHead":"1e1746afe120dd37f0464980f0fedfb8b3c768bd","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"ashkiani","email":"ashkiani@yahoo.com"},"repository":{"url":"git+https://github.com/ashkiani/aws-ses-mailer.git","type":"git"},"_npmVersion":"9.2.0","description":"Lightweight AWS SES email sender for Node.js — simple utility to send HTML/text emails with optional reply-to, built on AWS SDK v3.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"uuid":"^9.0.1","tslib":"^2.8.1","bowser":"^2.11.0","dotenv":"^16.5.0","strnum":"^1.1.2","fast-xml-parser":"^4.4.1","@aws-sdk/client-ses":"^3.808.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/aws-ses-mailer_1.0.0_1747177887966_0.23826001456485058","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@ashkiani/aws-ses-mailer","version":"1.0.1","description":"Lightweight AWS SES email sender for Node.js — simple utility to send HTML/text emails with optional reply-to, built on AWS SDK v3.","main":"index.js","dependencies":{"@aws-sdk/client-ses":"^3.1075.0"},"scripts":{"test":"node --test","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ashkiani/aws-ses-mailer.git"},"keywords":["aws-ses"],"author":{"name":"Siavash Ashkiani"},"license":"MIT","bugs":{"url":"https://github.com/ashkiani/aws-ses-mailer/issues"},"homepage":"https://github.com/ashkiani/aws-ses-mailer#readme","gitHead":"d332c41d5e68ce24c36b1081f93d5d76d2905c3a","_id":"@ashkiani/aws-ses-mailer@1.0.1","_nodeVersion":"18.19.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-yMgBaRvE2t1hORwRnYxbRjdeFhWsXDC5U0kkpqY+rVtbj1ro6CYHnc6fubjw7iqvEfZpNpRa3+prTAqIYCtEQA==","shasum":"d6769afa7c4ec1314b0f434c43c6cf94d812a661","tarball":"https://registry.npmjs.org/@ashkiani/aws-ses-mailer/-/aws-ses-mailer-1.0.1.tgz","fileCount":6,"unpackedSize":8787,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDZ7nYb4WlyH9U8znoB8vo3JXwA+9hGAhPsXLW8830d8gIgIX26XJTXd93puOXb/UCECkQIuhHV1dzwsJe09hLuXjc="}]},"_npmUser":{"name":"ashkiani","email":"ashkiani@yahoo.com"},"directories":{},"maintainers":[{"name":"ashkiani","email":"ashkiani@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aws-ses-mailer_1.0.1_1782426952809_0.7409347011616436"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-13T23:11:27.886Z","modified":"2026-06-25T22:35:53.064Z","1.0.0":"2025-05-13T23:11:28.155Z","1.0.1":"2026-06-25T22:35:52.952Z"},"bugs":{"url":"https://github.com/ashkiani/aws-ses-mailer/issues"},"author":{"name":"Siavash Ashkiani"},"license":"MIT","homepage":"https://github.com/ashkiani/aws-ses-mailer#readme","keywords":["aws-ses"],"repository":{"type":"git","url":"git+https://github.com/ashkiani/aws-ses-mailer.git"},"description":"Lightweight AWS SES email sender for Node.js — simple utility to send HTML/text emails with optional reply-to, built on AWS SDK v3.","maintainers":[{"name":"ashkiani","email":"ashkiani@yahoo.com"}],"readme":"# aws-ses-mailer\nLightweight AWS SES email sender for Node.js — simple utility to send HTML/text emails with optional reply-to, built on AWS SDK v3.\n\n\n# @ashkiani/aws-ses-mailer\n\nSimple and reusable AWS SES email sender for Node.js apps using the AWS SDK v3.\n\nThis utility wraps common email-sending functionality with support for plain text, HTML, subject, and reply-to addresses — ideal for backend services, alerts, and transactional email delivery.\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install @ashkiani/aws-ses-mailer\n```bash\n\n---\n\n## 🛠 Usage\n\n1. Set your environment variable:\n\n```env\nAWS_REGION=us-east-1\n```\n\n2. Import and use the module:\n\n```js\nconst mailer = require('@ashkiani/aws-ses-mailer');\n\nawait mailer.sendMail(\n    \"recipient@example.com\",\n    \"sender@yourdomain.com\",\n    \"This is the plain text body\",\n    \"<p>This is the <strong>HTML</strong> body</p>\",\n    \"Test Email Subject\",\n    \"replyto@yourdomain.com\"\n);\n```\n\n---\n\n## 📘 API\n\n### `sendMail(to, from, textBody, htmlBody, subject, replyTo)`\n\n| Param      | Type   | Description                          |\n| ---------- | ------ | ------------------------------------ |\n| `to`       | string | Recipient email address              |\n| `from`     | string | Sender email (must be SES verified)  |\n| `textBody` | string | Plain text version of the email body |\n| `htmlBody` | string | HTML version of the email body       |\n| `subject`  | string | Email subject line                   |\n| `replyTo`  | string | (Optional) Reply-to address          |\n\nReturns an SES send result object on success.\n\n---\n\n## 💡 Notes\n\n* Built using [@aws-sdk/client-ses](https://www.npmjs.com/package/@aws-sdk/client-ses).\n* Sender (`from`) address must be verified in your AWS SES setup.\n* Supports both HTML and plain text emails for better deliverability.\n* You can add `CcAddresses` or multiple recipients by modifying the source code if needed.\n\n---\n\n## 📄 License\n\nMIT © Siavash Ashkiani","readmeFilename":"README.md"}