Download & Extend

Mime Mail module: HTML emails and Plain text emails

Project:Mail Editor
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Would it be possible to extend this module so that it can handle HTML emails, possibly using the mime mail module http://drupal.org/project/mimemail?

Comments

#1

I'd love to see Mail editor provide two fieldsets. In the first one we would create and edit the HTML message. In the second part, we could edit the plaintext version.

The result should be a multipart mail message that would be handled automatically by the mail client.

#2

Version:5.x-1.1» 6.x-1.x-dev
Status:active» needs work

i dont know how to do that stuff :(.

if anyone cares to contribute a patch i will gladly review and commit it. however i dont know how to do the whole multipart and headers thing necessary for proper html email template.

#3

For a starter you can look at PHP.net.

http://ca3.php.net/manual/en/function.mail.php

Cheers.

#4

Here is a blog post about this subject:

Multipart HTML Emails With Drupal
http://agileapproach.com/blog-entry/multipart-html-emails-with-drupal

#5

Any progress here? I love the way Subscriptions does such neat plain text digests out of the box, it would be even more amazing if it could do it in HTML. I was wanting to use the Notifications framework for email replies (mail to web) and Subscriptions for digested updates. Perhaps this is a bad idea to start with :-)

#6

Status:needs work» closed (won't fix)

If you want mail_edit to handle html emails, simply install the htmlmail module.
AFTER it has been installed, run the following SQL command:

UPDATE system SET weight=1 WHERE name='htmlmail';

If you installed Drupal with table prefix, be sure to adjust the table name accordingly.

Do not forget to clear the Drupal cache after that.

This will make sure that the htmlmail magic occurs AFTER the mail_edit has done it's replacing.
The problem here is that mail_edit completely disregard the body when you specify your own custom template. When htmlmail makes this email as HTML, it gets replaced by your template.

So, an alternative to what I propose is to put your full HTML inside each of your templates. I prefer the first option.

Any comments?

#7

Status:closed (won't fix)» active

Interesting!

If you expect comments, you shouldn't mark the issue "won't fix", because that'll take it out of sight.

#8

i've commited the patch to htmlmail module to fix this. There will be a new official release soon.

#9

subscribing

#10

Component:User interface» Code

Hi Chris Herberte,

Does this mean we can send HTML emails with Mail Editor at this moment if we install htmlmail module?

I use Mail Editor to set the email for many mail templates for many languages, and would really like to make them html emails.

Thanks

#11

Component:Code» User interface

whoops, I'm not sure how the component changed with my last update.

Also, is there anything else that needs to be done to send Mail Editor mail templates as html emails?
Does all the code just go into the body section and that is it?

Thanks

#12

Could anyone please help clarify what the below means from #6, and what to do to get this working =)

The problem here is that mail_edit completely disregard the body when you specify your own custom template. When htmlmail makes this email as HTML, it gets replaced by your template.

So, an alternative to what I propose is to put your full HTML inside each of your templates. I prefer the first option.

#13

Title:Send HTML emails» Mime Mail module: HTML emails and Plain text emails

Using Mime Mail module it is possible to make all emails sent via Mail Editor to send as a html email. But it would be great to be able to specify the plain text version as well just in case the recipient does not allow html emails.

As a reference, Mime Mail module just added Rules Integration which allows HTML and Plain text versions to be specified. #501722: HTML mail actions for Rules

I hope this feature request can be considered which will greatly improve the usage of this module.

Thank you!

#14

Who will investigate and work on this?

#15

+1 subscribing

this looks to be the patch for rules http://drupal.org/files/issues/mimemail.501722_03.patch

nobody click here