diff options
author | xthursdayx <xthursdayx@mailbox.org> | 2020-06-23 12:01:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 12:01:55 -0400 |
commit | 0f2870c87a4b46649afa4296c655e8e9878a982d (patch) | |
tree | 6c58b79cc5afac9bf50b6df8e14e43765f45b4ac | |
parent | Update .env.example with SMTP settings (diff) | |
download | ferdium-server-0f2870c87a4b46649afa4296c655e8e9878a982d.tar.gz ferdium-server-0f2870c87a4b46649afa4296c655e8e9878a982d.tar.zst ferdium-server-0f2870c87a4b46649afa4296c655e8e9878a982d.zip |
Update mail.js with extended SMTP settings
-rw-r--r-- | config/mail.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/mail.js b/config/mail.js index 6b18db2..1294aca 100644 --- a/config/mail.js +++ b/config/mail.js | |||
@@ -21,13 +21,17 @@ module.exports = { | |||
21 | | | 21 | | |
22 | | Here we define configuration for sending emails via SMTP. | 22 | | Here we define configuration for sending emails via SMTP. |
23 | | | 23 | | |
24 | | https://nodemailer.com/smtp/ | ||
25 | | | ||
24 | */ | 26 | */ |
25 | smtp: { | 27 | smtp: { |
26 | driver: 'smtp', | 28 | driver: 'smtp', |
27 | pool: true, | 29 | pool: true, |
30 | name: Env.get('EXTERNAL_DOMAIN'), | ||
28 | port: Env.get('SMTP_PORT', 2525), | 31 | port: Env.get('SMTP_PORT', 2525), |
29 | host: Env.get('SMTP_HOST'), | 32 | host: Env.get('SMTP_HOST'), |
30 | secure: false, | 33 | secure: Env.get('SSL', false), // true for 465, false for other ports, |
34 | authMethod: ‘LOGIN’, | ||
31 | auth: { | 35 | auth: { |
32 | user: Env.get('MAIL_USERNAME'), | 36 | user: Env.get('MAIL_USERNAME'), |
33 | pass: Env.get('MAIL_PASSWORD') | 37 | pass: Env.get('MAIL_PASSWORD') |