Lurker News

Comments (209) 40 threads

Earlier comments
cies9 replies#
MJML deserves a mention. We use it, together with mustache, to let users create their own mailings from some building blocks we offer.

Works quite well!

ericcholis1 reply#
Curious, is this an in internal product?
52-6F-62#
I haven't worked with it, but others on my team have used it to support high-visibility magazine newsletters, etc. Works great.
1123581321#
MJML is great. We’ve developed a few hundred emails with it at this point and trained non-developers quite successfully. They use the MJML-provided editor or the Visual Studio plugin, and their visual Git tool of choice to make it easy to share components.
robertlacok1 reply#
I love MJML. Though the output delivers on the promise only 95% of times (I had to bend it a bit because of Gmail on iPhones), the experience for me as a developer is 100x better than working with visual builders.

I was able to recreate our purchased template in like 15 minutes, now it’s much easier to edit.

spicybright#
95% is an excellent number compared with hand crafted templates. I'm going to look into this, thank you for the suggestion!
bowlingx#
We use mjml as well, together with nunjucks. It's awesome :). No more HTML wrestling for all the different clients.
patrickserrano1 reply#
Any chance you could share some more details around how you integrated mustache with MJML? I did a project almost 3 years ago now where we used MJML and Handlebars, but I was never happy with the end result and have been thinking about going back and taking another stab.

Did MJML add any support for templating engines as part of the rendering process? That didn't seem to be an option when I did the original process so we had a 2 pass solution (MJML -> HTML w/Handlebars -> HTML).

cies1 reply#
The solution we have is quite complex, as it also includes a builder where client can drag-drop blocks to create template (with text variables) for mailings.

Mustache is used for color/font substitutions and also for text variable (like $recipient_name) substitutions.
So: JSON representation of an email -> HTML+Mustache -> HTML+Mustache (only variables) -> HTML
For (live during email building) previews we skip the last step and show the Mustache syntax.

crixlet2 replies#
which builder are you using? i hav ea similar mjml + mustache setup, and am using blocksedit.com for client drag/drop. would love to see your setup!

Continue this thread — 2 replies

lyptt#
MJML is insanely cool. I've just switched over to it and saved myself a ton of pain in creating consistent HTML emails.
nlh1 reply#
Huge fan of MJML! I've been using it to send out my [shameless plug]weekly nerd-focused newsletter (see bio)[/shameless plug] and I've got a nice workflow going with it.

I'm using a workflow of Pug (nice and short syntax to save on keystrokes) -> MJML (via Pug mixins) -> HTML.
MJML has a really nice Visual Studio Code plugin that has live reload on edit, so it's all a super nice locally-hosted way to develop rich text emails.
Happy to answer any questions or share my workflow/code with anyone. Still refining it but it's a nice system and has gotten my time to build and send a newsletter down from many hours to several hours :)

redindian75#
would love to know about your workflow & link to the code :)
inetknght5 replies#
Any HTML email that arrives to my inbox is usually marked as spam and phishing.

Emails need to be clear and concise. HTML facilitates far too much hidden shit.

D13Fd1 reply#
Interesting take given that they are used by millions of people every day.
Seirdy#
"Free" antivirus software, Windows 10 telemetry, Javascript, WeChat, WhatsApp, Google Chrome, Gmail, Facebook, and countless other software choices are used by millions of people today; that doesn't mean that feeling uncomfortable conforming to the norm is unwarranted.

The millions of people you refer to probably (without realizing) send multipart messages with a plaintext version available. Emails without this are typically spam.

cpursley4 replies#
This perspective is just as silly as turning off JavaScript in browsers.
zwaps1 reply#
Why is turning off javascript silly?

Not that I personally disable all JS in my browser, but I'd say if your website can not be displayed without Javascript, then it is silly.

rhines2 replies#
At one point I might have agreed with you, but after working on a few sites of my own I found that Javascript just enables a vastly better user experience. No need to refresh the page every time the user does something like liking a post or sending a comment, can load content more seamlessly with pre-loading or lazy loading, enables expandable menu bars to maximize space for content when the menu's not in use, things can be loaded faster and with less data usage if you send page diffs instead of full pages of markup, etc.

Javascript's terrible when it's used to generate pages from bloated frameworks that create 5000 DOM elements, add listeners to everything, load a dozen external scripts, and so on, but it's really valuable when used to actually improve the user experience.

Continue this thread — 2 replies

inetknght#
Funny enough... I turn off javascript in browsers.
spurgu#
Elaborate please.

I have Javascript off by default and only turn it on (using NoScript extension) whenever it's actually needed.
Most pages load just fine without and with those that don't it's a 50/50 between me enabling JS for it or deciding I didn't wanna view the content anyways and closing the tab.
As someone else mentioned it's not to deprive myself of functionality, but to deprive the vultures (trackers and other shady stuff) of it.

Seirdy#
Email clients that for whatever reason allow sending HTML email typically default to sending multipart messages with a normal plain text version as well. Emails that are HTML-only are typically marketing or unsolicited noreply junk.

I normally browse with a browser that doesn't even support JS (Lynx, NetSurf, or Dillo). Glad to know that anyone who doesn't use a browser developed by a company running on billions of dollars a year is just being "silly".
If I am compelled to use a "modern" browser, I turn off JS, cookies, remote fonts, WebGL, and any third-party resources and enable them on a case-by-case basis if the website is important enough (it usually isn't). Most sites worth visiting work much better when I do this.

andylynch3 replies#
As someone who lies in Excel, Outlook and too many different chat apps I think it’s far too useful to have proper formatted text in communications - Even very simple things like highlighting, tables, screenshots just don’t work or are unclear if you limit yourself to plain text.

Marketing emails can be annoying but that’s what the unsubscribe button is for ;)

inetknght#
Proper formatted text in communications is fine -- include it as a separate attachment that's not automatically loaded and displayed instead of plain text.
nonameiguess#
Cynically, the unsubscribe button is so phishing operations spamming every possible permutation of {, }@.com can confirm they hit a real email address and spam it out to all the various constant contact subscribers that pay them for leads.
Seirdy#
We have asterisks for emphasis , attachments for screenshots, and bulleted lists for a subset of tables. More complex tables and formatting probably work better in an attachment; the message body should be clear, concise, and render correctly in the recipient's mail client. When the body contains complex HTML, there's a good chance it'll render incorrectly in someone else's client.

Allowing fewer features is a feature in itself: when we try to allow everything without thinking about the consequences, we end up with something like the modern Web or Electron apps.

twobitshifter#
For security plain text is best. US Federal Government Recommendation is to disable html:

“Organizations should ensure that they have disabled HTML from being used in emails, as well as disabling links. Everything should be forced to plain text. This will reduce the likelihood of potentially dangerous scripts or links being sent in the body of the email, and also will reduce the likelihood of a user just clicking something without thinking about it. With plain text, the user would have to go through the process of either typing in the link or copying and pasting. This additional step will allow the user an extra opportunity for thought and analysis before clicking on the link.”
https://theconversation.com/the-only-safe-email-is-text-only...
That said theres another post on the front page about an Apple mail zero click exploit involving attachments so even plain text can’t dodge everything.

jeroenhd1 reply#
I think this is, aside from the security concerns, why many chat applications, forums and tools like Github/Gitlab have switched to standards like Markdown for text formatting.

I can see the value in linking, embedding images, highlighting through bold and italic text, and underlining. Even code can be useful inside an email. Markdown or a similar language would serve most people very well, much better than HTML. Non-automated and fully automated emails can do with a strong simplification.
Of course, marketing companies will always prefer full HTML because it allows for making their spam more gaudy and for making their emails follow their brand, usually through terrible abuse of tables and CSS that in the end only make emails unreadable on mobile, with dark mode enabled, or massively confuse screen readers.

inetknght1 reply#
If emails were written and parsed as markdown, I might (!) change my opinion about it. But HTML is vastly too feature-rich to be sane. I think showing images inline (such as in Github-flavored Markdown) is still too feature-rich. But lists, tables, monospaced blocks, italic, bold ... these are fine. Embedded images aren't conducive to being parsed by a script.
jeroenhd#
Inline images are very useful for diagrams, sharing screenshots and more. I can do without the stupid company logo underneath every email, but I'd much rather have to put up with those than be unable to use them. The resources need to be small enough to embed inside the email, though, and external resources should be made aa difficult as possible (always hidden by default, per rfc, with at least two clicks before they're displayed).

My perfect world email markdown will probably be different from yours. For productivity, anything more than slightly stylised text is just unnecessary, but in practice, most email isn't used for productivity anymore. Instant messaging has replaced email as a means of conversation in all workspaces I know.

martinaglv7 replies#
Hey! I am one of Mail Studio's authors. Will be happy to answer any questions.
arkitaip1 reply#
Electron or React Native? Why?

Are you planning to support seamless integration with ESP so that the entire lifecycle from design to sending emails is supported?

martinaglv2 replies#
The application is built on Electron. I think that visual editors like Mail Studio are one of the cases where this choice makes sense, since you are editing a live HTML page. You would need some a webview regardless of platform, but Electron makes the implementation easier.

At the moment, we support ESP syncing, which create/update a template on the linked platform. You can then use it as the basis of a campaign.

ponytech3 replies#
Why not a web app then?

Continue this thread — 3 replies

dnh445 replies#
It looks really useful and the rationale behind using Electron makes sense, but I really dislike using non-native macOS apps. Still, I suppose it's better than not being able to run it at all. Good luck with the project!

Continue this thread — 5 replies

ocdtrekkie2 replies#
Do you help users ensure your emails degrade gracefully when remote images aren't loaded or HTML email is disabled?
jonsully#
Also interested in this question

Continue this thread — 1 more reply

Continue this thread — 5 more replies

andrei_says_#
As someone who has been through the creation and maintenance of an in house email design system and builder, I’ll leave this link here: https://litmus.com/community/discussions/4990-outlook-2016-1...

It is the latest of many issues we’re facing caused by the despicable lack of consistency, especially in Microsoft’s email clients.
As for an email designing software, what my organization needed was a set of predesigned components with predefined variations - to form a somewhat flexible but disciplined email design system.
A design studio wouldn’t really work for us- the same way a website CMS should not allow complete freedom to its editors. Design decisions should be separate from content decisions.

Load more comments