{"_id":"@dameradev/strapi-admin-invite-email","_rev":"1-b76888bf0dc11868860c75a8e997ecec","name":"@dameradev/strapi-admin-invite-email","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@dameradev/strapi-admin-invite-email","version":"1.0.0","keywords":[],"author":{"name":"Damjan Radev"},"license":"MIT","_id":"@dameradev/strapi-admin-invite-email@1.0.0","maintainers":[{"name":"dameradev","email":"radevdevelopment@gmail.com"}],"dist":{"shasum":"23a7b18d74f88578e3701eb8bfe6a5eb9ad4ca8b","tarball":"https://registry.npmjs.org/@dameradev/strapi-admin-invite-email/-/strapi-admin-invite-email-1.0.0.tgz","fileCount":6,"integrity":"sha512-6oMf9sICVkKHGVbc1Q0yEj0Yf9oo59UCtuqiuh50/V1y4sC7F66Ym/ACpy3cjIzKcrvLiAnnx+sihzNFblB4XA==","signatures":[{"sig":"MEQCICw/4x/7vw6yW40pFNfwiKnBMPy0dkofT1OMGs9mpzkDAiBNl0tYTe6ZQEiUZCglN+MddZUfuB4tIblnFh32hSYH6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5301},"main":"index.js","strapi":{"kind":"plugin","name":"invitation-email","description":"Adds automatic emails sent when inviting new users.","displayName":"Invitation Email"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"dameradev","email":"radevdevelopment@gmail.com"},"_npmVersion":"10.7.0","description":"Adds automatic emails sent when inviting new users.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@strapi/provider-email-nodemailer":"^4.5.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/strapi-admin-invite-email_1.0.0_1725895137790_0.4339086189961716","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@dameradev/strapi-admin-invite-email","version":"1.0.1","description":"Adds automatic emails sent when inviting new users.","main":"index.js","strapi":{"name":"invitation-email","description":"Adds automatic emails sent when inviting new users.","kind":"plugin","displayName":"Invitation Email"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"@strapi/provider-email-nodemailer":"^4.5.0"},"keywords":[],"author":{"name":"Damjan Radev"},"license":"MIT","_id":"@dameradev/strapi-admin-invite-email@1.0.1","_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-1y+bmvT6Rby46ZNy9osTldinLnreln3xze0lSAq5AaD87ssWi5Ms3ZIGjE8cG0qVuQKXJ1vznbWm3FSPWLcw8g==","shasum":"3e9bef71d7b3be1cd9f172c041051f1971ea6874","tarball":"https://registry.npmjs.org/@dameradev/strapi-admin-invite-email/-/strapi-admin-invite-email-1.0.1.tgz","fileCount":6,"unpackedSize":5335,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSQ0t4Y1cEjN3IYKRDRYzOBWG7aMzORu9WWP2jNgfgZAIhAKTfZ68J30zghViT9v2NQmTGJV2HuC7JUCkBCy5TiZw9"}]},"_npmUser":{"name":"dameradev","email":"radevdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"dameradev","email":"radevdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-admin-invite-email_1.0.1_1725985130651_0.15191374976389604"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-09T15:18:57.693Z","modified":"2024-09-10T16:18:51.037Z","1.0.0":"2024-09-09T15:18:58.029Z","1.0.1":"2024-09-10T16:18:50.866Z"},"author":{"name":"Damjan Radev"},"license":"MIT","keywords":[],"description":"Adds automatic emails sent when inviting new users.","maintainers":[{"name":"dameradev","email":"radevdevelopment@gmail.com"}],"readme":"# Strapi plugin invitation-email\r\n\r\nAdds automatic emails sent when inviting new users. The email is being sent when clicking \"Invite user\" button after filling the new user form.\r\n\r\n## Installation\r\n\r\nRequires strapi `>= 4.4.6`\r\n\r\nIn the root of the strapi project run:\r\n\r\n```\r\nnpm install @chcaa/strapi-invitation-email\r\n```\r\n\r\n## Configuration\r\n\r\n### Required\r\n\r\nSpecify `email` plugin config in config/plugin.js file. `nodemailer` needs to be set as the default provider, and properties of an email account for outgoing emails must specified.  \r\nExample of the configuration using environment variables:\r\n\r\n```js\r\n  email: {\r\n    config: {\r\n      provider: \"nodemailer\",\r\n      providerOptions: {\r\n        host: env(\"SMTP_HOST\", 'smtp.uni.au.dk'),\r\n        port: env(\"SMTP_PORT\", 25),\r\n        auth: {\r\n          user: env(\"SMTP_USERNAME\"),\r\n          pass: env(\"SMTP_PASSWORD\"),\r\n        },\r\n      },\r\n      settings: {\r\n        defaultFrom: env(\"EMAIL_DEFAULT_FROM\"),\r\n        defaultReplyTo: env(\"EMAIL_DEFAULT_REPLY_TO\"),\r\n      },\r\n    },\r\n  },\r\n```\r\n\r\n### Optional\r\n\r\nThe email template used for inviting a new user can be specified by passing path of the html file in 'invitation-email' config in config/plugin.js file. The template has access to the user object (`USER`) and invitation link (`URL`).\r\n\r\nConfig example:\r\n\r\n```js\r\n\"invitation-email\": {\r\n    config: {\r\n      \"email-template\": \"assets/InvitationEmailTemplate.html\",\r\n    },\r\n  },\r\n```\r\n\r\nTemplate example:\r\n\r\n```html\r\n<p>Hi <%= USER.firstname %>!</p>\r\n<p>\r\n  You've been invited to a Strapi administrator panel. Please click on the link\r\n  below to create your account.\r\n</p>\r\n<p><%= URL %></p>\r\n<p>Thanks.</p>\r\n```\r\n","readmeFilename":"README.md"}