Just don't forget the plaintext version!
Even Gmail/Outlook/Yahoo users may disable js and/or HTML when reading mail.
Even Gmail/Outlook/Yahoo users may disable js and/or HTML when reading mail.
// js-side
import { render } = from 'jsx-mail';
const template = await render('Welcome', { name: 'John' });
console.log(template) // <html>...<h1>John Welcome to jsx-mail</h1>...</html>
(https://github.com/Theryston/jsx-mail)Generating a plaintext message dynamically isn’t much of a pain point but html emails can be.