mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 12:13:52 +00:00
Merge pull request #15387 from johannchopin/patch-1
This commit is contained in:
commit
253ba050a7
@ -60,11 +60,13 @@ You can override the default configurations for specific environments. E.g. for
|
||||
```js
|
||||
module.exports = ({ env }) => ({
|
||||
email: {
|
||||
provider: 'nodemailer',
|
||||
providerOptions: {
|
||||
host: 'localhost',
|
||||
port: 1025,
|
||||
ignoreTLS: true,
|
||||
config: {
|
||||
provider: 'nodemailer',
|
||||
providerOptions: {
|
||||
host: 'localhost',
|
||||
port: 1025,
|
||||
ignoreTLS: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
@ -83,24 +85,26 @@ const nodemailerNTLMAuth = require('nodemailer-ntlm-auth');
|
||||
|
||||
module.exports = ({ env }) => ({
|
||||
email: {
|
||||
provider: 'nodemailer',
|
||||
providerOptions: {
|
||||
host: env('SMTP_HOST', 'smtp.example.com'),
|
||||
port: env('SMTP_PORT', 587),
|
||||
auth: {
|
||||
type: 'custom',
|
||||
method: 'NTLM',
|
||||
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: {
|
||||
type: 'custom',
|
||||
method: 'NTLM',
|
||||
user: env('SMTP_USERNAME'),
|
||||
pass: env('SMTP_PASSWORD'),
|
||||
},
|
||||
customAuth: {
|
||||
NTLM: nodemailerNTLMAuth,
|
||||
},
|
||||
},
|
||||
customAuth: {
|
||||
NTLM: nodemailerNTLMAuth,
|
||||
settings: {
|
||||
defaultFrom: 'hello@example.com',
|
||||
defaultReplyTo: 'hello@example.com',
|
||||
},
|
||||
},
|
||||
settings: {
|
||||
defaultFrom: 'hello@example.com',
|
||||
defaultReplyTo: 'hello@example.com',
|
||||
},
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user