Added MAIL_PORT

This commit is contained in:
Keith Irwin 2023-05-01 13:28:29 -06:00
parent 19c97cda0c
commit c3058c44ba
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
3 changed files with 4 additions and 1 deletions

View File

@ -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>"

View File

@ -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:

View File

@ -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,