| Project: | HTML Mail |
| Version: | 7.x-2.60 |
| Component: | Module compatibility |
| Category: | feature request |
| Priority: | normal |
| Assigned: | pillarsdotnet |
| Status: | needs review |
Issue Summary
Hello,
HTML Mail module works great with system emails and with Mail Editor module emails vs Mime Mail module which I found to have a few issues. However, Mime Mail module recently added a great Rules Integration feature #501722: HTML mail actions for Rules that makes it very powerful. Therefore, I'm currently using a combination of HTML Mail module for system emails and Mime Mail module for emails sent via Rules.
I would like to kindly request for Rules Integration to be considered for HTML Mail module. I hope the patch at #501722: HTML mail actions for Rules would help this implementation. I am not familiar with programming but will be readily available to extensive testing.
Thank you very much in advance!
Comments
#1
Subscribing.
#2
Bumping version -- will consider a backport to 6.x after first getting this working in 7.x.
#3
#4
+1 for 6.x
#5
Will revisit this shortly.
#6
Thiw is not working.
There is no guidelines
#7
jddeli: If course it's not working -- I haven't even written the code yet.
#8
Bump -- next on the to-do list.
#9
I have a moderated organic group that is set so mailhandler turns new posts sent by email into nodes that are not published. I have a rule that sends an email to the moderator for each new post, including the node body and a link to edit the node. The rule is now working fine with HTML mail. In debug mode it told me to create two tpl.php files, htmlmail-rules.tpl.php and htmlmail-rules-action-mail.tpl.php.
#10
Thanks for the feedback.
Renamed the issue accordingly.
#11
#12
#13
+1 what's the status? I'd like to give it a shot at integrating HTML Mail with Rules, but don't want to be stepping on toes.
#14
I haven't started this yet; feel free to submit a patch and I'll review it.
#15
Here's my initial Rules integration. Just drop it in the htmlmail module folder and rename it to htmlmail.rules.inc (sorry about that, but what's the proper way to attach such file? A zip archive for one file?...that's kinda silly.)
To test:- set up a new rule
- for actions, select under System "Send templated e-mail.",
- there's a key field, use a single word string for now
In your selected theme directory, create a template with name: htmlmail--htmlmail--[key].tpl.php.
Caveats/Improvements:- allow longer strings (but i guess not too long) for keys
- add a module select field
- add some validations for both
What else am i missing? Any comments or suggestions?
#16
Thanks; will review as soon as I can.
#17
Ok, i'm working on some of the improvements and will submit new file when done. I realized that one important feature missing is adding tokens...d'oh!