smtp env variable support (#13058)

Co-authored-by: Midhun G S <gsmithun4@gmail.com>
This commit is contained in:
Rohan Lahori 2025-06-26 22:08:00 +05:30 committed by GitHub
parent ad16f1979e
commit 95b1c9237d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,6 +90,7 @@ export class EmailService implements IEmailService {
host: smtpSettings.host,
port: smtpSettings.port,
secure: smtpSettings.port === 465, // Use `true` for port 465, `false` for others
ignoreTLS: process.env.SMTP_IGNORE_TLS === 'true' ? true : false,
auth: {
user: smtpSettings.username,
pass: smtpSettings.password,