@strapi/provider-email-nodemailer
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "@strapi/provider-email-nodemailer", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Nodemailer provider for Strapi 3", | ||
@@ -59,6 +59,3 @@ "keywords": [ | ||
}, | ||
"strapi": { | ||
"isProvider": true | ||
}, | ||
"gitHead": "b181702f0202b2c6d645d42b195a831f25cd0b03" | ||
"gitHead": "e2cd01e8c6cbfeba15ad7787e38b6eebcbb92221" | ||
} |
@@ -1,6 +0,6 @@ | ||
# strapi-provider-email-nodemailer | ||
# @strapi/provider-email-nodemailer | ||
## Resources | ||
- [License](LICENSE) | ||
- [LICENSE](LICENSE) | ||
@@ -10,9 +10,6 @@ ## Links | ||
- [Strapi website](https://strapi.io/) | ||
- [Strapi community on Slack](https://slack.strapi.io) | ||
- [Strapi documentation](https://docs.strapi.io) | ||
- [Strapi community on Discord](https://discord.strapi.io) | ||
- [Strapi news on Twitter](https://twitter.com/strapijs) | ||
## Prerequisites | ||
You need to have the plugin `strapi-plugin-email` installed in your Strapi project. | ||
## Installation | ||
@@ -22,6 +19,6 @@ | ||
# using yarn | ||
yarn add strapi-provider-email-nodemailer | ||
yarn add @strapi/provider-email-nodemailer | ||
# using npm | ||
npm install strapi-provider-email-nodemailer --save | ||
npm install @strapi/provider-email-nodemailer --save | ||
``` | ||
@@ -35,18 +32,22 @@ | ||
module.exports = ({ env }) => ({ | ||
// ... | ||
email: { | ||
provider: 'nodemailer', | ||
providerOptions: { | ||
host: env('SMTP_HOST', 'smtp.example.com'), | ||
port: env('SMTP_PORT', 587), | ||
auth: { | ||
user: env('SMTP_USERNAME'), | ||
pass: env('SMTP_PASSWORD'), | ||
config: { | ||
provider: 'nodemailer', | ||
providerOptions: { | ||
host: env('SMTP_HOST', 'smtp.example.com'), | ||
port: env('SMTP_PORT', 587), | ||
auth: { | ||
user: env('SMTP_USERNAME'), | ||
pass: env('SMTP_PASSWORD'), | ||
}, | ||
// ... any custom nodemailer options | ||
}, | ||
// ... any custom nodemailer options | ||
settings: { | ||
defaultFrom: 'hello@example.com', | ||
defaultReplyTo: 'hello@example.com', | ||
}, | ||
}, | ||
settings: { | ||
defaultFrom: 'hello@example.com', | ||
defaultReplyTo: 'hello@example.com', | ||
}, | ||
}, | ||
// ... | ||
}); | ||
@@ -53,0 +54,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158
7416