nuxt-email-layer

Nuxt layer for building and sending emails with Vue Email.
2,266
Install
npm install nuxt-email-layer
Latest Version:0.0.10
Vue:3
Last Updated:May 9, 2026
Links: npm
Maintainer: danielkellyio

nuxt-email-layer

Nuxt layer for building and sending emails with Vue Email.

Documentation

Providers:

  • MailCatcher (Development)
  • Mailgun (Production)

Simple Example

// nuxt.config.ts (with config)
export default defineNuxtConfig({
  extends: ["nuxt-email-layer"],
  runtimeConfig: {
    email: {
      provider: "mailcatcher",
      defaultFrom: "hello@localhost.dev",
      mailgun: {
        apiKey: "", // NUXT_EMAIL_MAILGUN_API_KEY
        domain: "", // NUXT_EMAIL_MAILGUN_DOMAIN
      },
    },
  },
});
export default defineEventHandler(async (event) => {
  const email = useEmail();

  const result = await email.send({
    to: "user@example.com",
    subject: "Hello",
    body: "<html><body><h1>Test email from Nuxt Email Layer.</h1></body></html>",
    text: "Test email from Nuxt Email Layer.",
  });
});

See the docs for more information.

Version History

Version Released Vue License
0.0.10 ^3.0
0.0.8 ^3.0
0.0.7 ^3.0
0.0.6 ^3.0
0.0.4 ^3.0