Use case: I'm using HTMLMail to nicely format eMails into HTML on their way out of sites. However, one of those sites is a support ticketing site that for critical tickets eMails my mobile phone with ticket details via rules when the ticket is saved. These eMails I don't want wrapped in HTML, but rather just plain text. So I need to be able to tell HTMLMail (the newest version) the mail key(s) of those eMails it is not to HTML-ise. Thus, I need to be able to specify a mail key for certain rules-generated eMails.

The attached patch does this. Would be great if it made it into the next version of rules.

Shawn

CommentFileSizeAuthor
rules_6.x-1.4_cbd_2011-03-22.patch2.34 KBsdsheridan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mitchell’s picture

Title: Ability to specify the mail key » Ability to specify the mail key for Rules
Project: Rules » HTML Mail
Version: 6.x-1.4 » 6.x-2.x-dev
Component: Provided Rules integration » Module compatibility
Status: Active » Needs review

Darn... you should've put this under 'needs review' so it would have popped up on the maintainers' radars. Thank you though for clearly describing what you were hoping to solve and providing a patch. Is this still needed?

I'm not sure what to do with this now, but I guess its more likely to receive attention more attention in the html mail issue queue.

jacob.embree’s picture

Component: Module compatibility » Code
Issue summary: View changes
Status: Needs review » Needs work

The patch is against the rules module so cannot apply to HTML Mail.

sja1’s picture

I think you can achieve what you want through configuration of the Mail System module.

At the bottom of the configuration page (admin/config/system/mailsystem) expand the "New Setting" field set. In the "Module" dropdown choose "Rules", and in the "Key" field type the key of the email you want have treated differently.

Once you click "Save settings", at the top section of the configuration page a new setting will appear: "Rules module (THE_KEY_YOU_TYPED_IN key) class". Now you can set this to a class such as DefaultMailSystem to prevent those mails from being sent as html.

salvis’s picture

Status: Needs work » Closed (outdated)