superlogin
superlogin copied to clipboard
Sending html mails with text fallback
I understand an email can contain both a html and a plain text version. Where the users email client decides which one is shown.
- https://litmus.com/blog/best-practices-for-plain-text-emails-a-look-at-why-theyre-important
- http://group-mail.com/html-email/how-to-create-a-multi-part-mime-email-html-and-plain-text/
Nodemailer makes this easy because you can simply set both: https://nodemailer.com/about/
With the current superlogin config however we need to choose, because we set one template
and one format
type:
https://github.com/colinskow/superlogin/blob/master/config.example.js#L105-L108
Couldn't it support both using htmlTemplate
and textTemplate
config options?
For backwards compatibility template
and format
could still be supported.