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!
Comment | File | Size | Author |
---|---|---|---|
#15 | htmlmail.rules_.inc_.txt | 2.16 KB | nymo |
Comments
Comment #1
yoyek CreditAttribution: yoyek commentedSubscribing.
Comment #2
pillarsdotnet CreditAttribution: pillarsdotnet commentedBumping version -- will consider a backport to 6.x after first getting this working in 7.x.
Comment #3
pillarsdotnet CreditAttribution: pillarsdotnet commentedComment #4
griz CreditAttribution: griz commented+1 for 6.x
Comment #5
pillarsdotnet CreditAttribution: pillarsdotnet commentedWill revisit this shortly.
Comment #6
jddeli CreditAttribution: jddeli commentedThiw is not working.
There is no guidelines
Comment #7
pillarsdotnet CreditAttribution: pillarsdotnet commentedjddeli: If course it's not working -- I haven't even written the code yet.
Comment #8
pillarsdotnet CreditAttribution: pillarsdotnet commentedBump -- next on the to-do list.
Comment #9
rsbecker CreditAttribution: rsbecker commentedI 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.
Comment #10
pillarsdotnet CreditAttribution: pillarsdotnet commentedThanks for the feedback.
Renamed the issue accordingly.
Comment #11
pillarsdotnet CreditAttribution: pillarsdotnet commentedComment #12
pillarsdotnet CreditAttribution: pillarsdotnet commentedComment #13
nymo CreditAttribution: nymo commented+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.
Comment #14
pillarsdotnet CreditAttribution: pillarsdotnet commentedI haven't started this yet; feel free to submit a patch and I'll review it.
Comment #15
nymo CreditAttribution: nymo commentedHere'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?
Comment #16
pillarsdotnet CreditAttribution: pillarsdotnet commentedThanks; will review as soon as I can.
Comment #17
nymo CreditAttribution: nymo commentedOk, 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!
Comment #18
TR CreditAttribution: TR commentedThis will not be done for the D7 version of HTML Mail.
Why is this needed? HTML Mail will work for all email, including email sent by Rules. The only reason to write a new RulesAction for HTML Mail is if there is some HTML Mail feature we want to use in that action that can't be used with the default Rules "Send email" action. Is there?
Comment #19
TR CreditAttribution: TR commented