diff --git a/tdrive/backend/node/src/core/platform/services/email-pusher/index.ts b/tdrive/backend/node/src/core/platform/services/email-pusher/index.ts index 3900ad4b..4e40923d 100644 --- a/tdrive/backend/node/src/core/platform/services/email-pusher/index.ts +++ b/tdrive/backend/node/src/core/platform/services/email-pusher/index.ts @@ -45,10 +45,6 @@ export default class EmailPusherClass port: this.configuration.get("smtp_port", 25), requireTLS: this.configuration.get("smtp_tls", false), secure: this.configuration.get("smtp_tls", false), - auth: { - user: this.configuration.get("smtp_user", ""), - pass: this.configuration.get("smtp_password", ""), - }, }; this.transporter = nodemailer.createTransport(smtpConfig); this.sender = this.configuration.get("smtp_from", ""); @@ -148,7 +144,10 @@ export default class EmailPusherClass this.logger.info("Message sent: %s", info.response); } catch (err) { - this.logger.error({ error: `${err}` }, "Failed to send email"); + this.logger.error( + { error: `${err}`, secure: this.configuration.get("smtp_tls", false) }, + "Failed to send email", + ); } } else { this.logger.info("sending email via api interface."); diff --git a/tdrive/backend/node/src/core/platform/services/email-pusher/types.ts b/tdrive/backend/node/src/core/platform/services/email-pusher/types.ts index 0e63afb6..f97398dd 100644 --- a/tdrive/backend/node/src/core/platform/services/email-pusher/types.ts +++ b/tdrive/backend/node/src/core/platform/services/email-pusher/types.ts @@ -51,7 +51,7 @@ export type SMTPClientConfigType = { port: number; secure?: boolean; requireTLS: boolean; - auth: { + auth?: { user: string; pass: string; };