Fix: Node Mailer Settings

This commit is contained in:
Br0wnHammer committed 2025-06-11 14:11:49 +05:30
1 parent 3cd8191aa4
commit ec25ebee35
1 file changed
+1 -5
+1 -5
View File
@@ -109,7 +109,7 @@ class EmailService {
const baseEmailConfig = { const baseEmailConfig = {
host: systemEmailHost, host: systemEmailHost,
port: systemEmailPort, port: Number(systemEmailPort),
secure: true, secure: true,
auth: { auth: {
user: systemEmailUser || systemEmailAddress, user: systemEmailUser || systemEmailAddress,
@@ -130,10 +130,6 @@ class EmailService {
} }
: baseEmailConfig; : baseEmailConfig;
if (!isSmtps) {
delete emailConfig.auth;
}
this.transporter = this.nodemailer.createTransport(emailConfig); this.transporter = this.nodemailer.createTransport(emailConfig);
const buildHtml = async (template, context) => { const buildHtml = async (template, context) => {