3 ms·
Just don't forget the plaintext version! Even Gmail/Outlook/Yahoo users may disable js and/or HTML when reading mail.
by 3np 4y ago
Just don't forget the plaintext version!
Even Gmail/Outlook/Yahoo users may disable js and/or HTML when reading mail.
- andirk 4y agoFurthermore, save for some nice branding color schemes, better font sizing, and maybe a few other useful UI features, an email should be almost all text and images. It should be treated more like a postal letter or a chatroom message.
- tdeck 4y agoI'm assuming this precompiles the HTML before sending it, given the render() call.
- adamzochowski 4y agoDoes render() also generate plaintext?
- jeroenhd 4y agoThe example on Github doesn't seem to: // 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 https://github.com/Theryston/jsx-mail)
- hombre_fatal 4y agoA Plaintext email would show the html tags in plaintext. It’s probably not something this library wants to solve since stripping html tags from an html email isn’t necessarily a coherent plaintext email either. Generating a plaintext message dynamically isn’t much of a pain point but html emails can be.