# EMAIL_SMTP_NODEMAILER_MISSING

<!-- Generated by docs/modules/diagnostics from the package catalogs. Write a guide in docs/diagnostics/<CODE>.md instead of editing this file. -->

The `smtp` Email driver sends with [Nodemailer](https://nodemailer.com), and the app does not have the `nodemailer` package. ViteHub does not install it for you, and it imports it only when it sends.

Install it in the app, for example `pnpm add nodemailer`. The build checks this, so `vite build` stops with this code. A `createEmail()` client with the `smtp` driver throws this code on its first send. See [Send over SMTP](https://vitehub.dev/docs/email/configure#send-over-smtp).

## Source

`EMAIL_SMTP_NODEMAILER_MISSING` belongs to the `email` package. Its catalog entry is in [`src/error-diagnostics.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/email/src/error-diagnostics.ts#L125). It is raised in [`src/drivers/smtp.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/email/src/drivers/smtp.ts#L44), [`src/vite.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/email/src/vite.ts#L204).

See [all Email diagnostics](https://vitehub.dev/docs/email/diagnostics).

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/email.md)
- [Get started](https://vitehub.dev/raw/docs/email/get-started.md)
- [Configure](https://vitehub.dev/raw/docs/email/configure.md)
- [Server API](https://vitehub.dev/raw/docs/email/server-api.md)
- [Agent capability](https://vitehub.dev/raw/docs/email/agent-capability.md)
- [Hosts](https://vitehub.dev/raw/docs/email/hosts.md)
- [Limits and errors](https://vitehub.dev/raw/docs/email/limits-and-errors.md)

Next: [EMAIL_SYNC_OPTION_REQUIRED](https://vitehub.dev/raw/docs/email/diagnostics/email_sync_option_required.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
