diff options
author | 2020-10-09 07:18:40 +0530 | |
---|---|---|
committer | 2020-10-09 07:18:40 +0530 | |
commit | b4011ca927cde0de518c2594979c450f247b7721 (patch) | |
tree | 782e491dd4caea68ac0b6462b1ccb293ba12c558 /config/mail.js | |
parent | Changes made as requested (diff) | |
parent | Merge branch 'master' into SSL-pg-mail (diff) | |
download | ferdium-server-b4011ca927cde0de518c2594979c450f247b7721.tar.gz ferdium-server-b4011ca927cde0de518c2594979c450f247b7721.tar.zst ferdium-server-b4011ca927cde0de518c2594979c450f247b7721.zip |
Merge pull request #2 from Omkaragrawal/SSL-pg-mail
Ssl for pg and mail
Diffstat (limited to 'config/mail.js')
-rw-r--r-- | config/mail.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/mail.js b/config/mail.js index 50a7848..88edd05 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: JSON.parse(Env.get("MAIL_SSL", "true")), | 33 | secure: JSON.parse(Env.get("MAIL_SSL", "true")), |
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') |