Added MAIL_PORT
This commit is contained in:
parent
19c97cda0c
commit
c3058c44ba
|
@ -14,6 +14,7 @@ CONTACT_EMAIL="contact@example.com"
|
|||
|
||||
# Mailserver
|
||||
MAIL_SERVER="example.com"
|
||||
MAIL_PORT="25"
|
||||
CONTACT_MAIL_FROM="Company Contact <noreply@example.com>"
|
||||
SALES_MAIL_FROM="Company Sales <noreply@example.com>"
|
||||
BUGS_MAIL_FROM="Company Bug Reports <noreply@example.com>"
|
||||
|
|
|
@ -44,6 +44,7 @@ services:
|
|||
- ADMIN_EMAIL=${ADMIN_EMAIL}
|
||||
- SALES_EMAIL=${SALES_EMAIL}
|
||||
- MAIL_SERVER=${MAIL_SERVER}
|
||||
- MAIL_PORT=${MAIL_PORT}
|
||||
- CONTACT_MAIL_FROM=${CONTACT_MAIL_FROM}
|
||||
- SALES_MAIL_FROM=${SALES_MAIL_FROM}
|
||||
- BUGS_MAIL_FROM=${BUGS_MAIL_FROM}
|
||||
|
@ -71,6 +72,7 @@ services:
|
|||
- STRIPE_LISTENER_PORT=${STRIPE_LISTENER_PORT}
|
||||
- SALES_EMAIL=${SALES_EMAIL}
|
||||
- MAIL_SERVER=${MAIL_SERVER}
|
||||
- MAIL_PORT=${MAIL_PORT}
|
||||
- MAIL_USER=${MAIL_USER}
|
||||
- MAIL_PASS=${MAIL_PASS}
|
||||
volumes:
|
||||
|
|
|
@ -3,7 +3,7 @@ require('dotenv').config()
|
|||
|
||||
module.exports = require('nodemailer').createTransport({
|
||||
host: process.env.MAIL_SERVER,
|
||||
port: 587,
|
||||
port: process.env.MAIL_PORT,
|
||||
auth: {
|
||||
user: process.env.MAIL_USER,
|
||||
pass: process.env.MAIL_PASS,
|
||||
|
|
Loading…
Reference in New Issue