Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ SMTP_HOST=your.smtpserver.com
SMTP_PORT=587
SMTP_USER=yoursmtpuser
SMTP_PASS=yoursmtppassword
SMTP_REJECT_UNAUTHORIZED=false
ADMIN_EMAIL=adminaccountemail@example.com
EMAIL_SENDER=automatedemailfromaddress@example.com
HOME_URL=your.domain.com
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ services:
networks:
- app-tier
# Expose port for Nginx Proxy Manager to access
expose:
- 8000
ports:
- 8000:8000
environment:
- HOME_URL=https://dpdash.local

Expand Down
5 changes: 5 additions & 0 deletions server/mailer/BaseMailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS,
},
tls: {
// to not fail on invalid certs:
// set SMTP_REJECT_UNAUTHORIZED=false in .env file
rejectUnauthorized: process.env.SMTP_REJECT_UNAUTHORIZED == 'true',

Check warning on line 28 in server/mailer/BaseMailer.js

View workflow job for this annotation

GitHub Actions / Test on Node latest and ubuntu-latest

Expected '===' and instead saw '=='

Check warning on line 28 in server/mailer/BaseMailer.js

View workflow job for this annotation

GitHub Actions / Test on Node latest and ubuntu-latest

Insert `⏎···············`
Comment thread
tashrifbillah marked this conversation as resolved.
},
})

return await transporter.sendMail({
Expand Down
Loading