From fd7baef1d444af9150f5f401f8c7c6ee4962a5a4 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 5 Nov 2025 04:22:48 +0000 Subject: [PATCH] completionId: cgen-2771ae9c6d05469888bfccea597f7dae cgen-2771ae9c6d05469888bfccea597f7dae --- server/email.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/email.ts b/server/email.ts index 8ff96e42..861fddb2 100644 --- a/server/email.ts +++ b/server/email.ts @@ -52,7 +52,16 @@ function getTransporter() { export const emailService = { get isConfigured() { - return Boolean(smtpHost && smtpUser && smtpPassword); + const configured = Boolean(smtpHost && smtpUser && smtpPassword); + if (!configured) { + console.warn("[EmailService] Not configured. Env check:", { + SMTP_HOST: smtpHost ? "set" : "MISSING", + SMTP_USER: smtpUser ? "set" : "MISSING", + SMTP_PASSWORD: smtpPassword ? "set" : "MISSING", + SMTP_PORT: smtpPort, + }); + } + return configured; }, async sendVerificationEmail(params: { @@ -60,6 +69,7 @@ export const emailService = { verificationUrl: string; fullName?: string | null; }) { + console.log("[EmailService] sendVerificationEmail called for:", params.to); const transporter = getTransporter(); const { to, verificationUrl, fullName } = params; const safeName = fullName?.trim() || "there";