sighmon / mjml-rails

MJML + ERb/Haml/Slim view template
https://mjml.io
Other
300 stars 65 forks source link

swap order of mjml/text in format block #42

Closed scurker closed 6 years ago

scurker commented 6 years ago

The current example of formatting in the readme will cause some clients (such as gmail) to only display the text version. The enhanced html version should always be last.

From the Multipart RFC 1341 spec:

In general, user agents that compose multipart/alternative entities should place the body parts in increasing order of preference, that is, with the preferred format last. For fancy text, the sending user agent should put the plainest format first and the richest format last.

sighmon commented 6 years ago

Good catch! Thanks @scurker .