{"_id":"@chcaa/strapi-invitation-email","_rev":"4-86ebb7c293534bf6b733fb7384993550","name":"@chcaa/strapi-invitation-email","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@chcaa/strapi-invitation-email","version":"1.0.0","author":{"name":"Jędrzej Głowaczewski"},"license":"MIT","_id":"@chcaa/strapi-invitation-email@1.0.0","maintainers":[{"name":"jedglow","email":"jedrzej.glowaczewski@gmail.com"},{"name":"csiztom","email":"tom.csiz@gmail.com"},{"name":"madsvestergaard","email":"mrv@cas.au.dk"},{"name":"pbvahlst","email":"imvpbv@cc.au.dk"}],"dist":{"shasum":"0632c21e2f704e45dfafc5aafe54587cd0648fef","tarball":"https://registry.npmjs.org/@chcaa/strapi-invitation-email/-/strapi-invitation-email-1.0.0.tgz","fileCount":6,"integrity":"sha512-476C5H8U/s39aLNcFzgFomt+mOIlcJszZm1b7gPWP9u1WwdguA5LL7GhHE8p4DbeBFZQPAFTqZI07GpsimxdqQ==","signatures":[{"sig":"MEQCIG0OPpIB+5MmsrWM79TDTqIQSBk4o9/8ZteJRiDv/PLAAiBfgvFxU9gxfzNXB+iJExX64FpmX5RsUf0hUPX0ua/ZIQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5460,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjifjWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwzg/9FdaxxcUO62aQ5UqPUAMBjjWNT7EqspstaVkQJ+krfZdJekUJ\r\nG2woauvE1ixj1NSjaUuOduOrE4G4X2FfNmQYVIFsjbGrCKaN5uLONU6QcgnF\r\njMZkjSI8/Zd7DKyB6vYNxecGF0ZtcKrTNRYMZlbIWToYOMdXXvAJWSC1vDO4\r\nYLZeBL/vw7BBtgPnmCzUOG6LkcxTY35njKyg7VWhXRzdhG/zhln+HET1wIGK\r\nFOeKGlDyrsZ5sIMVkbhNji9myrotucmxVAMXKcq7fAMd5uQEoQNjdI0+a0xd\r\nV4e9Kai0ATJch0vtoDH98BB0PzYeYcdbxFz7EDAp3uJqvFh+Xh5nmgTILavO\r\nA+6E78W//TgYnCUA/WMg9kxCQJzJcaPagTgyz0NEAIdETECMq06Uh9sa+rmy\r\nNvK92puKO2MxemjKBSjnz+E8s5jSGLruHsalU/Uq9dnF5ABYQlVpxHYTLpVx\r\niGRBlNc0jWXGWSVlBaPHflhGb24QTwDI3opsiL1gdN1hS+lrHx6zAgtM1mv5\r\n3vpl0eC/TnJuODaw7Rfk528QpCs0tozBAXMek4QjTq2OWLHkg46EoW1ZfBp4\r\nwu7uaCYxGvi5ArLp3pZbbenrFGYMoQ/+/AqmeSO617uoPMxqqdci9uVYWvm/\r\nwC8fUC7f9Fw9+ELDmqyM0VO+tWfhfZPl1wE=\r\n=dc6m\r\n-----END PGP SIGNATURE-----\r\n"},"strapi":{"kind":"plugin","name":"invitation-email","description":"Adds automatic emails sent when inviting new users.","displayName":"Invitation Email"},"engines":{"npm":">=6.0.0","node":">=14.19.1 <=18.x.x"},"gitHead":"6751c337d231de33a351bfefaca5e0e6c8bb8405","_npmUser":{"name":"jedglow","email":"jedrzej.glowaczewski@gmail.com"},"_npmVersion":"8.19.2","description":"Adds automatic emails sent when inviting new users.","directories":{},"_nodeVersion":"16.18.0","dependencies":{"@strapi/provider-email-nodemailer":"^4.5.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/strapi-invitation-email_1.0.0_1669986518751_0.431231403017291","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-12-02T13:08:38.659Z","modified":"2025-02-06T13:30:02.811Z","1.0.0":"2022-12-02T13:08:38.927Z"},"author":{"name":"Jędrzej Głowaczewski"},"license":"MIT","description":"Adds automatic emails sent when inviting new users.","maintainers":[{"email":"imvpbv@cc.au.dk","name":"pbvahlst"},{"email":"bfog@cc.au.dk","name":"donbjarkone"}],"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"}