Email Issues
Email problems in NuxtBase usually come from one of three situations:
- you think mail is being sent, but it is only being previewed
- you selected a driver that is not fully configured
- the app is using a different from-address or provider than you assumed
Problem: “Email Sent” But Nothing Arrives In An Inbox
Section titled “Problem: “Email Sent” But Nothing Arrives In An Inbox”Check whether you are in preview mode first.
If the resolved mail driver is preview, NuxtBase writes HTML files into:
.tmp/email-previews/and does not send a real email.
This can happen because:
NUXT_MAIL_DRIVER=preview- no mail driver is set and no Resend API key is present, so the template falls back to preview
What To Check
Section titled “What To Check”- confirm the resolved driver you intended to use
- inspect
.tmp/email-previews/after triggering a message - only debug SMTP or Resend delivery after you confirm you are not just previewing
Problem: Resend Driver Throws A Missing API Key Error
Section titled “Problem: Resend Driver Throws A Missing API Key Error”If you explicitly choose resend, but NUXT_RESEND_API_KEY is empty, the
mailer throws at send time.
Typical error:
Resend driver selected but NUXT_RESEND_API_KEY is not configured.Either:
- provide a real
NUXT_RESEND_API_KEY - or switch the driver back to
preview - or remove the explicit driver and let the template resolve the driver from available config
Problem: SMTP Is Configured, But Delivery Fails
Section titled “Problem: SMTP Is Configured, But Delivery Fails”SMTP settings are only partially validated at startup.
The template checks username/password pairing, but it does not prove that the SMTP server is reachable or that the credentials are accepted.
So this can still fail at runtime even when the server boots cleanly.
What To Check
Section titled “What To Check”NUXT_SMTP_HOSTNUXT_SMTP_PORTNUXT_SMTP_SECURENUXT_SMTP_USERNUXT_SMTP_PASSWORD- firewall or container network access to the SMTP host
Problem: The Sender Address Is Not What You Expected
Section titled “Problem: The Sender Address Is Not What You Expected”NuxtBase resolves the from-address in this order:
- explicit
frompassed by the sender NUXT_RESEND_FROM_EMAILsiteConfig.defaultResendFrom
If your messages appear with the wrong sender, check env first before editing templates.
Problem: Verification Or Reset Emails Work Locally But Not In Production
Section titled “Problem: Verification Or Reset Emails Work Locally But Not In Production”This is often not a template rendering problem. It is usually one of these:
- production mail driver differs from local
- production provider credentials are missing
- links inside the email point to the wrong public domain
Fastest Way To Debug Email
Section titled “Fastest Way To Debug Email”- confirm the active mail driver
- confirm whether you are previewing or sending for real
- confirm the API key or SMTP credentials
- confirm the from-address
- trigger one real verification or reset email and inspect the result