Hi all,

I think that the mimemail module needs to have a permission scheme to filter which roles have the option to disable rich text email.

What do you think? I can, and probably will do it in the next weeks.

Cheers, Simon.

Comments

sgabe’s picture

If you can provide a patch with your progress in this feature, I am sure that would be welcomed.

sgabe’s picture

I have been thinking about this and IMHO it is not a good idea to tie up the users and take away the option to decide in which format do they want to receive email messages. In some cases it could be useful, but if we implement this in the module, everybody will take away the permission from their users because they want them to receive fancy HTML messages, tho' the users don't want to. I believe that this should stay as it is.

sgabe’s picture

Status: Active » Closed (won't fix)
achton’s picture

Status: Closed (won't fix) » Active

I beg to differ.

While I overall agree with the sentiment of giving users power to do as they wish, your argument doesn't quite work for me.

It is quite valid to wish to remove this option as a way of achieving the "less is more"-effect. Ie. removing options that is of no use for, say, 80% of your users - in order to improve the user experience for them all. Particularly if you generally send plain text messages anyway. I don't think admins will go ahead and deactivate this option if it doesn't make sense for them. And if they do, their users will tell them that they want that feature back (if they miss it).

Also, by denying site admins the option to filter this checkbox by role, one could say that you yourself are guilty of taking away power from your users ;-)

Cheers,
Achton

sgabe’s picture

Then create a custom module and hide that option in hook_form_alter(). I still don't think that this is a feature that Mime Mail needs to provide... However if you want you can do this in your own module.

What would make sense for me is to automatically hide this user option when Mime Mail is globally set to send only plain text messages. I see your point there, but I don't quite agree with the original idea.

achton’s picture

Status: Active » Closed (won't fix)

Fair enough :-)

jdln’s picture

Status: Closed (won't fix) » Active

Hope im not flogging a dead horse here. I need to hide the 'plain text email only'. How can I do this? Is the only way a custom module? This is beyond me so instead I would have to get jQuery to select the container of the text and hide it that way.
Thanks

sgabe’s picture

Status: Active » Closed (fixed)

Yes, or using CSS, JQuery, etc.

sgabe’s picture

Status: Closed (fixed) » Closed (won't fix)
TimG1’s picture

Version: 6.x-1.x-dev » 7.x-1.0-alpha2

For Drupal 7 you can use hook_form_FORM_ID_alter()

/**
 * @MYMODULE_form_user_profile_form_alter()
 * Implements hook_form_FORM_ID_alter().
 */
function MYMODULE_form_user_profile_form_alter(&$form, &$form_state, $form_id) {
  unset($form['mimemail']);
}

Thanks for reading,
-Tim