Resend
Send a compiled Maizzle template through the Resend HTTP API.
Install
bash
npm install resend @maizzle/framework
Render and send
ts
import { Resend } from 'resend'
import { render } from '@maizzle/framework'
const resend = new Resend(process.env.RESEND_API_KEY)
const { html, plaintext } = await render('emails/welcome.vue')
await resend.emails.send({
from: '[email protected]',
to: '[email protected]',
subject: 'Welcome',
html,
text: plaintext,
})
To send from your own domain, verify it first in the Resend dashboard.