@strapi/provider-email-nodemailer 4.0.0-next.9 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -21
- package/lib/index.js +2 -2
- package/package.json +25 -27
package/README.md
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
# strapi
|
|
1
|
+
# @strapi/provider-email-nodemailer
|
|
2
2
|
|
|
3
3
|
## Resources
|
|
4
4
|
|
|
5
|
-
- [
|
|
5
|
+
- [LICENSE](LICENSE)
|
|
6
6
|
|
|
7
7
|
## Links
|
|
8
8
|
|
|
9
9
|
- [Strapi website](https://strapi.io/)
|
|
10
|
-
- [Strapi
|
|
10
|
+
- [Strapi documentation](https://docs.strapi.io)
|
|
11
|
+
- [Strapi community on Discord](https://discord.strapi.io)
|
|
11
12
|
- [Strapi news on Twitter](https://twitter.com/strapijs)
|
|
12
13
|
|
|
13
|
-
## Prerequisites
|
|
14
|
-
|
|
15
|
-
You need to have the plugin `strapi-plugin-email` installed in your Strapi project.
|
|
16
|
-
|
|
17
14
|
## Installation
|
|
18
15
|
|
|
19
16
|
```bash
|
|
20
17
|
# using yarn
|
|
21
|
-
yarn add strapi
|
|
18
|
+
yarn add @strapi/provider-email-nodemailer
|
|
22
19
|
|
|
23
20
|
# using npm
|
|
24
|
-
npm install strapi
|
|
21
|
+
npm install @strapi/provider-email-nodemailer --save
|
|
25
22
|
```
|
|
26
23
|
|
|
27
24
|
## Example
|
|
@@ -30,22 +27,26 @@ npm install strapi-provider-email-nodemailer --save
|
|
|
30
27
|
|
|
31
28
|
```js
|
|
32
29
|
module.exports = ({ env }) => ({
|
|
30
|
+
// ...
|
|
33
31
|
email: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
config: {
|
|
33
|
+
provider: 'nodemailer',
|
|
34
|
+
providerOptions: {
|
|
35
|
+
host: env('SMTP_HOST', 'smtp.example.com'),
|
|
36
|
+
port: env('SMTP_PORT', 587),
|
|
37
|
+
auth: {
|
|
38
|
+
user: env('SMTP_USERNAME'),
|
|
39
|
+
pass: env('SMTP_PASSWORD'),
|
|
40
|
+
},
|
|
41
|
+
// ... any custom nodemailer options
|
|
42
|
+
},
|
|
43
|
+
settings: {
|
|
44
|
+
defaultFrom: 'hello@example.com',
|
|
45
|
+
defaultReplyTo: 'hello@example.com',
|
|
41
46
|
},
|
|
42
|
-
// ... any custom nodemailer options
|
|
43
|
-
},
|
|
44
|
-
settings: {
|
|
45
|
-
defaultFrom: 'hello@example.com',
|
|
46
|
-
defaultReplyTo: 'hello@example.com',
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
|
+
// ...
|
|
49
50
|
});
|
|
50
51
|
```
|
|
51
52
|
|
package/lib/index.js
CHANGED
|
@@ -23,11 +23,11 @@ module.exports = {
|
|
|
23
23
|
provider: 'nodemailer',
|
|
24
24
|
name: 'Nodemailer',
|
|
25
25
|
|
|
26
|
-
init
|
|
26
|
+
init(providerOptions = {}, settings = {}) {
|
|
27
27
|
const transporter = nodemailer.createTransport(providerOptions);
|
|
28
28
|
|
|
29
29
|
return {
|
|
30
|
-
send
|
|
30
|
+
send(options) {
|
|
31
31
|
// Default values.
|
|
32
32
|
const emailOptions = {
|
|
33
33
|
..._.pick(options, emailFields),
|
package/package.json
CHANGED
|
@@ -1,35 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/provider-email-nodemailer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Nodemailer provider for Strapi 3",
|
|
5
|
-
"homepage": "https://strapi.io",
|
|
6
5
|
"keywords": [
|
|
7
6
|
"strapi",
|
|
8
7
|
"email",
|
|
9
8
|
"provider",
|
|
10
9
|
"nodemailer"
|
|
11
10
|
],
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"lodash": "4.17.21",
|
|
18
|
-
"nodemailer": "6.5.0"
|
|
11
|
+
"homepage": "https://strapi.io",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/strapi/strapi/issues"
|
|
19
14
|
},
|
|
20
15
|
"repository": {
|
|
21
16
|
"type": "git",
|
|
22
17
|
"url": "https://github.com/strapi/strapi.git"
|
|
23
18
|
},
|
|
19
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
24
20
|
"author": {
|
|
25
21
|
"name": "Yurii Tykhomyrov"
|
|
26
22
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
"maintainers": [
|
|
24
|
+
{
|
|
25
|
+
"name": "Strapi Solutions SAS",
|
|
26
|
+
"email": "hi@strapi.io",
|
|
27
|
+
"url": "https://strapi.io"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
33
30
|
"contributors": [
|
|
34
31
|
{
|
|
35
32
|
"name": "Veit Bjarsch",
|
|
@@ -44,19 +41,20 @@
|
|
|
44
41
|
"email": "git@roschaefer.de"
|
|
45
42
|
}
|
|
46
43
|
],
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
"
|
|
44
|
+
"main": "./lib",
|
|
45
|
+
"directories": {
|
|
46
|
+
"lib": "./lib"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"test": "echo \"no tests yet\""
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"lodash": "4.17.21",
|
|
53
|
+
"nodemailer": "6.5.0"
|
|
57
54
|
},
|
|
58
55
|
"engines": {
|
|
59
|
-
"node": ">=12.
|
|
56
|
+
"node": ">=12.22.0 <=16.x.x",
|
|
60
57
|
"npm": ">=6.0.0"
|
|
61
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"gitHead": "48893ae3fc951b618fd8c4fdc6970e623d2c92db"
|
|
62
60
|
}
|