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 = {
|
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) => {
|
||||||
|
|||||||
Reference in new issue
Block a user