How can I use hono/jsx templates to send Emails via Nodemailer?
I'm not sure if this is possible currently...
I would like to render a JSX or TSX component without having to set up a route. I want to render a JSX component to an html string with one function call, so I can pass the string to nodemailer. How can I achieve this with hono?
5 Replies
html Helper - Hono
Web framework built on Web Standards for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
this will work for simple html
thanks for your response @ambergristle ... is it possible to template an email with this helper?
i don't see why not
I didn't know the raw function could do that. This is generally how I got templated emails working with hono: