{"_id":"@bohemicastudio/strapi-v4-provider-email-postmark","_rev":"3-00ace1f02114ecf3ea9fd6450a4954ca","name":"@bohemicastudio/strapi-v4-provider-email-postmark","dist-tags":{"latest":"4.3.2"},"versions":{"4.3.0":{"name":"@bohemicastudio/strapi-v4-provider-email-postmark","version":"4.3.0","keywords":["strapi","provider","email","postmark"],"author":{"name":"Scott Agirs Neminskis","email":"scott.agirs@gmail.com"},"license":"MIT","_id":"@bohemicastudio/strapi-v4-provider-email-postmark@4.3.0","maintainers":[{"name":"bohemicastudio","email":"bohemicastudio@gmail.com"}],"contributors":[{"name":"Martin Orvad","email":"martin@metalab.dk"}],"homepage":"https://github.com/bohemicastudio/strapi-v4-provider-email-postmark#readme","bugs":{"url":"https://github.com/bohemicastudio/strapi-v4-provider-email-postmark/issues"},"dist":{"shasum":"99c2108c6ce4a6b5d6b3c4abee8362df2c00902c","tarball":"https://registry.npmjs.org/@bohemicastudio/strapi-v4-provider-email-postmark/-/strapi-v4-provider-email-postmark-4.3.0.tgz","fileCount":5,"integrity":"sha512-V6Jo2DhRQQ6F32j9UjUrX+5wmkpcAcBdl+tJi/j5BwUE4z+YBz0tvyTlB9ZVZv8DMVLHsophRKXi5bf+/PxxmQ==","signatures":[{"sig":"MEUCIQCl2CB+BH9X7VzTPHUKgms4T6xn03Nwm7jVjuUpWG8DVQIgRM8JdHDuqArWnYWeF7pRmiWmREjw3XeB9ON4H/0aPmI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9810},"main":"lib/index.js","strapi":{"isProvider":true},"engines":{"npm":">=6.0.0","node":">=14.19.1"},"gitHead":"6758188ebd69e9705629e300c8f425db85c2b589","private":false,"_npmUser":{"name":"bohemicastudio","email":"bohemicastudio@gmail.com"},"repository":{"url":"git+https://github.com/bohemicastudio/strapi-v4-provider-email-postmark.git","type":"git"},"_npmVersion":"10.9.0","description":"Strapi v4 Email service provider for Postmark with support for new Node versions","directories":{"lib":"./lib"},"_nodeVersion":"20.18.0","dependencies":{"postmark":"4.0.5","@strapi/utils":"^4.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/strapi-v4-provider-email-postmark_4.3.0_1742919211029_0.9063885257062825","host":"s3://npm-registry-packages-npm-production"}},"4.3.1":{"name":"@bohemicastudio/strapi-v4-provider-email-postmark","version":"4.3.1","keywords":["strapi","provider","email","postmark"],"author":{"name":"Scott Agirs Neminskis","email":"scott.agirs@gmail.com"},"license":"MIT","_id":"@bohemicastudio/strapi-v4-provider-email-postmark@4.3.1","maintainers":[{"name":"bohemicastudio","email":"bohemicastudio@gmail.com"}],"contributors":[{"name":"Martin Orvad","email":"martin@metalab.dk"}],"homepage":"https://github.com/bohemicastudio/strapi-v4-provider-email-postmark#readme","bugs":{"url":"https://github.com/bohemicastudio/strapi-v4-provider-email-postmark/issues"},"dist":{"shasum":"af6ae1bedce631e408e9df054d2570686fb3bfc3","tarball":"https://registry.npmjs.org/@bohemicastudio/strapi-v4-provider-email-postmark/-/strapi-v4-provider-email-postmark-4.3.1.tgz","fileCount":5,"integrity":"sha512-JyhknTQJAGpNtR40rYH3JmecbMSKv2xLHlbiWNl5d+HgT1n/egoJVQjbdr1QF2AZlB/iW7JgtwXjORFynwcZiA==","signatures":[{"sig":"MEQCIDiJcY7+JdWnVOTOVpzWV4oSN8X0P/Lon2Tl6JO8cwcpAiATbu+FkRaSDg9frk0wDcqf6TSuuTpJh2f4uHU/iZHLnQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9842},"main":"lib/index.js","strapi":{"isProvider":true},"engines":{"npm":">=6.0.0","node":">=14.19.1"},"gitHead":"6758188ebd69e9705629e300c8f425db85c2b589","private":false,"_npmUser":{"name":"bohemicastudio","email":"bohemicastudio@gmail.com"},"repository":{"url":"git+https://github.com/bohemicastudio/strapi-v4-provider-email-postmark.git","type":"git"},"_npmVersion":"10.9.0","description":"Strapi v4 Email service provider for Postmark with support for new Node versions","directories":{"lib":"./lib"},"_nodeVersion":"20.18.0","dependencies":{"postmark":"4.0.5","@strapi/utils":"^4.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/strapi-v4-provider-email-postmark_4.3.1_1742919289527_0.7902552415290742","host":"s3://npm-registry-packages-npm-production"}},"4.3.2":{"name":"@bohemicastudio/strapi-v4-provider-email-postmark","version":"4.3.2","private":false,"description":"Strapi v4 Email service provider for Postmark with support for new Node versions","author":{"name":"Scott Agirs Neminskis","email":"scott.agirs@gmail.com"},"contributors":[{"name":"Martin Orvad","email":"martin@metalab.dk"}],"directories":{"lib":"./lib"},"main":"lib/index.js","dependencies":{"postmark":"4.0.5","@strapi/utils":"^4.0.0"},"strapi":{"isProvider":true},"keywords":["strapi","provider","email","postmark"],"repository":{"type":"git","url":"git+https://github.com/bohemicastudio/strapi-v4-provider-email-postmark.git"},"bugs":{"url":"https://github.com/bohemicastudio/strapi-v4-provider-email-postmark/issues"},"engines":{"node":">=14.19.1","npm":">=6.0.0"},"license":"MIT","_id":"@bohemicastudio/strapi-v4-provider-email-postmark@4.3.2","gitHead":"402a7fa1f1b1ccd6227a349ff844197dc068f51d","homepage":"https://github.com/bohemicastudio/strapi-v4-provider-email-postmark#readme","_nodeVersion":"20.18.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-qPo2C0LqyuX8ZsdSMHpn1pzKXyay2f6uzziN6ijcpLRn2VfRsQQsKIoPEWyjDx47YbrlESm68G0Bl5V261nBWQ==","shasum":"d33ce64751d0e59500f585e4fa2ff37f8192fe85","tarball":"https://registry.npmjs.org/@bohemicastudio/strapi-v4-provider-email-postmark/-/strapi-v4-provider-email-postmark-4.3.2.tgz","fileCount":5,"unpackedSize":9858,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFnUvuqiM4/iEaDIa1yPhwqRmdZ2Ah8UBHLDlfqVhdPBAiBkYNBUxEjTeLdTOblax288btqpUPwb9Y0nnXzohEKmuw=="}]},"_npmUser":{"name":"bohemicastudio","email":"bohemicastudio@gmail.com"},"maintainers":[{"name":"bohemicastudio","email":"bohemicastudio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strapi-v4-provider-email-postmark_4.3.2_1742919615729_0.2543588323450052"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-25T16:13:30.874Z","modified":"2025-03-25T16:20:16.084Z","4.3.0":"2025-03-25T16:13:31.199Z","4.3.1":"2025-03-25T16:14:49.730Z","4.3.2":"2025-03-25T16:20:15.924Z"},"bugs":{"url":"https://github.com/bohemicastudio/strapi-v4-provider-email-postmark/issues"},"author":{"name":"Scott Agirs Neminskis","email":"scott.agirs@gmail.com"},"license":"MIT","homepage":"https://github.com/bohemicastudio/strapi-v4-provider-email-postmark#readme","keywords":["strapi","provider","email","postmark"],"repository":{"type":"git","url":"git+https://github.com/bohemicastudio/strapi-v4-provider-email-postmark.git"},"description":"Strapi v4 Email service provider for Postmark with support for new Node versions","contributors":[{"name":"Martin Orvad","email":"martin@metalab.dk"}],"maintainers":[{"name":"bohemicastudio","email":"bohemicastudio@gmail.com"}],"readme":"# @bohemicastudio/strapi-v4-provider-email-postmark\r\n\r\n[Strapi](http://strapi.io/) email service for [Postmark](https://postmarkapp.com/)\r\nForked to support new Strapi versions\r\n\r\n# Prerequisites\r\n\r\nYou will need to have the plugin `strapi-plugin-email` installed in you Strapi project.\r\n\r\n# Installation\r\n\r\n```\r\n# using yarn\r\nyarn add @bohemicastudio/strapi-v4-provider-email-postmark\r\n\r\n# using npm\r\nnpm i @bohemicastudio/strapi-v4-provider-email-postmark\r\n```\r\n\r\n# Configuration\r\n\r\n| Variable                      | Type   | Description                                                                                                                                                                   | Required | Default   |\r\n| ----------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | --------- |\r\n| provider                      | string | The name of the provider you use                                                                                                                                              | yes      |           |\r\n| providerOptions               | object | Provider options                                                                                                                                                              | yes      |           |\r\n| providerOptions.apiKey        | string | Postmark API key. Please refer to [postmark docs](https://www.npmjs.com/package/postmark) for more                                                                            | yes      |           |\r\n| settings                      | object | Settings                                                                                                                                                                      | no       | {}        |\r\n| settings.defaultMessageStream | string | Send through a specific message stream. Please refer to [postmark docs](https://postmarkapp.com/support/article/1207-how-to-create-and-send-through-message-streams) for more | no       | undefined |\r\n| settings.defaultFrom          | string | Default sender mail address                                                                                                                                                   | no       | undefined |\r\n| settings.defaultTo            | string | Default receiver mail address                                                                                                                                                 | no       | undefined |\r\n| settings.defaultReplyTo       | string | Default address the receiver is asked to reply to                                                                                                                             | no       | undefined |\r\n| settings.defaultVariables     | object | Default set of variables to be used in template emails                                                                                                                        | no       | {}        |\r\n\r\n### Example\r\n\r\nPath - `config/plugins.js`\r\n\r\n```javascript\r\nmodule.exports = ({ env }) => ({\r\n  // ...\r\n  email: {\r\n    config: {\r\n      provider: \"@bohemicastudio/strapi-v4-provider-email-postmark\",\r\n      providerOptions: {\r\n        apiKey: env(\"POSTMARK_API_KEY\"),\r\n      },\r\n      settings: {\r\n        defaultMessageStream: env(\"POSTMARK_STREAM\"),\r\n        defaultFrom: env(\"POSTMARK_FROM\"),\r\n        defaultTo: env(\"POSTMARK_TO\"),\r\n        defaultReplyTo: env(\"POSTMARK_REPLY_TO\"),\r\n        defaultVariables: {\r\n          sentBy: \"strapi\",\r\n        },\r\n      },\r\n    },\r\n  },\r\n  // ...\r\n});\r\n```\r\n\r\n### Usage\r\n\r\nCall the `send` function on the email service, as you would for any strapi email service.\r\n\r\n```javascript\r\nawait strapi.plugins.email.services.email.send({\r\n  to: \"john.doe@ijs.to\",\r\n  text: \"Hello John\",\r\n});\r\n```\r\n\r\nTo send an email via a template, set `templateId` or `templateAlias` (and `variables`) to use the `sendEmailWithTemplate` method.\r\n\r\n```javascript\r\nawait strapi.plugins.email.services.email.send({\r\n  to: \"john.doe@ijs.to\",\r\n  templateAlias: \"code-your-own\",\r\n  variables: {\r\n    name: \"John\",\r\n  },\r\n});\r\n```\r\n\r\n# Licence\r\n\r\n- [MIT](https://github.com/ijsto/strapi-provider-email-postmark/blob/master/LICENSE.md)\r\n","readmeFilename":"README.md"}