@strapi/provider-email-nodemailer 4.6.0 → 4.6.2

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.
Files changed (2) hide show
  1. package/README.md +24 -20
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -60,11 +60,13 @@ You can override the default configurations for specific environments. E.g. for
60
60
  ```js
61
61
  module.exports = ({ env }) => ({
62
62
  email: {
63
- provider: 'nodemailer',
64
- providerOptions: {
65
- host: 'localhost',
66
- port: 1025,
67
- ignoreTLS: true,
63
+ config: {
64
+ provider: 'nodemailer',
65
+ providerOptions: {
66
+ host: 'localhost',
67
+ port: 1025,
68
+ ignoreTLS: true,
69
+ },
68
70
  },
69
71
  },
70
72
  });
@@ -83,24 +85,26 @@ const nodemailerNTLMAuth = require('nodemailer-ntlm-auth');
83
85
 
84
86
  module.exports = ({ env }) => ({
85
87
  email: {
86
- provider: 'nodemailer',
87
- providerOptions: {
88
- host: env('SMTP_HOST', 'smtp.example.com'),
89
- port: env('SMTP_PORT', 587),
90
- auth: {
91
- type: 'custom',
92
- method: 'NTLM',
93
- user: env('SMTP_USERNAME'),
94
- pass: env('SMTP_PASSWORD'),
88
+ config: {
89
+ provider: 'nodemailer',
90
+ providerOptions: {
91
+ host: env('SMTP_HOST', 'smtp.example.com'),
92
+ port: env('SMTP_PORT', 587),
93
+ auth: {
94
+ type: 'custom',
95
+ method: 'NTLM',
96
+ user: env('SMTP_USERNAME'),
97
+ pass: env('SMTP_PASSWORD'),
98
+ },
99
+ customAuth: {
100
+ NTLM: nodemailerNTLMAuth,
101
+ },
95
102
  },
96
- customAuth: {
97
- NTLM: nodemailerNTLMAuth,
103
+ settings: {
104
+ defaultFrom: 'hello@example.com',
105
+ defaultReplyTo: 'hello@example.com',
98
106
  },
99
107
  },
100
- settings: {
101
- defaultFrom: 'hello@example.com',
102
- defaultReplyTo: 'hello@example.com',
103
- },
104
108
  },
105
109
  });
106
110
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/provider-email-nodemailer",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "description": "Nodemailer provider for Strapi 3",
5
5
  "keywords": [
6
6
  "strapi",
@@ -50,11 +50,11 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "lodash": "4.17.21",
53
- "nodemailer": "6.8.0"
53
+ "nodemailer": "6.9.1"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=14.19.1 <=18.x.x",
57
57
  "npm": ">=6.0.0"
58
58
  },
59
- "gitHead": "a9e55435c489f3379d88565bf3f729deb29bfb45"
59
+ "gitHead": "bae505f44c3a779905f6b8dbc0c497e24d9eabfb"
60
60
  }