Fix: Node Mailer Settings
This commit is contained in:
1 parent
3cd8191aa4
commit
ec25ebee35
1 file changed
+1
-5
@@ -109,7 +109,7 @@ class EmailService {
|
||||
|
||||
const baseEmailConfig = {
|
||||
host: systemEmailHost,
|
||||
port: systemEmailPort,
|
||||
port: Number(systemEmailPort),
|
||||
secure: true,
|
||||
auth: {
|
||||
user: systemEmailUser || systemEmailAddress,
|
||||
@@ -130,10 +130,6 @@ class EmailService {
|
||||
}
|
||||
: baseEmailConfig;
|
||||
|
||||
if (!isSmtps) {
|
||||
delete emailConfig.auth;
|
||||
}
|
||||
|
||||
this.transporter = this.nodemailer.createTransport(emailConfig);
|
||||
|
||||
const buildHtml = async (template, context) => {
|
||||
|
||||
Reference in new issue
Block a user