Hi Guys, On Tue, 2006-03-14 at 15:59 -0800, Neil Drumm wrote:
After the recent security announcement went out as HTML email there was a bit of chatter. Here is how to make things change:
- Security announcements and Drupal newsletters are sent using the simplenews module, development will happen there.
- There is a decent HTML to text converter in project module. If there is a use for it in core I'd be happy to add it, but for now I'd like to see it put in an .inc file which defines the necessary function(s) if they haven't already. Then this .inc can be thrown in any contributed module that needs it.
- The mime headers part of multipart messages isn't too bad to write. The part we would stumble on is the actual HTML, but we aren't doing anything too fancy and it seems that no one had issues with the quality of the markup (disclaimer: I only skimmed the complaints).
The mime-mail module already does an excellent job at both of these things (and is already used as a back-end by several other modules).
From http://drupal.org/node/37911 This is a Mime Mail component module (for use by other modules). * It permits users to recieve HTML email and can be used by other modules. The mail functionality accepts an HTML message body, mime-endcodes it and sends it. * If the HTML has embedded graphics, these graphics are MIME-encoded and included as a message attachment. * Adopts your site's style by automatically including your theme's stylesheet files in a themeable HTML message format * If the recipient's preference is available and they prefer plaintext, the HTML will be converted to plain text and sent as-is. Otherwise, the email will be sent in themeable HTML with a plaintext alternative.
I think it would be great if we could get this (or a version of it) in core :) - Owen