Skip to content

Medium: SMTP_PASS defaults to empty string causing silent auth failures when SMTP_USER is set #16

@harsharajkumar

Description

@harsharajkumar

In emailService.js:21, the SMTP auth password falls back to an empty string: pass: process.env.SMTP_PASS || ''. If SMTP_USER is configured but SMTP_PASS is not set (e.g. forgotten in deployment), nodemailer will attempt authentication with a blank password. The send will fail silently — the error is only logged as a warning (line 57) and does not surface to the user or operator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmediumShould fix soon

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions