From 5edc1435d9f38a3f3460b41958c4f072cd08a18b Mon Sep 17 00:00:00 2001 From: xthursdayx Date: Tue, 23 Jun 2020 11:48:04 -0400 Subject: Update .env.example with SMTP settings --- .env.example | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index db9ae1d..ba46d99 100644 --- a/.env.example +++ b/.env.example @@ -4,6 +4,7 @@ NODE_ENV=development APP_NAME=AdonisJs APP_URL=http://${HOST}:${PORT} +EXTERNAL_DOMAIN=ferdi.domain.tld CACHE_VIEWS=false @@ -28,4 +29,5 @@ SMTP_PORT=2525 SMTP_HOST=127.0.0.1 MAIL_USERNAME=username MAIL_PASSWORD=password -MAIL_SENDER=noreply@getferdi.com \ No newline at end of file +MAIL_SENDER=noreply@getferdi.com +SSL=false -- cgit v1.2.3-70-g09d2 From 0f2870c87a4b46649afa4296c655e8e9878a982d Mon Sep 17 00:00:00 2001 From: xthursdayx Date: Tue, 23 Jun 2020 12:01:55 -0400 Subject: Update mail.js with extended SMTP settings --- config/mail.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = { | | Here we define configuration for sending emails via SMTP. | + | https://nodemailer.com/smtp/ + | */ smtp: { driver: 'smtp', pool: true, + name: Env.get('EXTERNAL_DOMAIN'), port: Env.get('SMTP_PORT', 2525), host: Env.get('SMTP_HOST'), - secure: false, + secure: Env.get('SSL', false), // true for 465, false for other ports, + authMethod: ‘LOGIN’, auth: { user: Env.get('MAIL_USERNAME'), pass: Env.get('MAIL_PASSWORD') -- cgit v1.2.3-70-g09d2 From ec97988e9a8957c1476b45af21c3ac71a211a971 Mon Sep 17 00:00:00 2001 From: xthursdayx Date: Mon, 27 Jul 2020 16:12:53 -0400 Subject: Update mail.js --- config/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/mail.js b/config/mail.js index 1294aca..f128ce2 100644 --- a/config/mail.js +++ b/config/mail.js @@ -31,7 +31,7 @@ module.exports = { port: Env.get('SMTP_PORT', 2525), host: Env.get('SMTP_HOST'), secure: Env.get('SSL', false), // true for 465, false for other ports, - authMethod: ‘LOGIN’, + authMethod: 'LOGIN', auth: { user: Env.get('MAIL_USERNAME'), pass: Env.get('MAIL_PASSWORD') -- cgit v1.2.3-70-g09d2