Since i did not found a proper way to create different templates for mimemails, i added a template suggestion in template_preprocess_mimemail_message() of my local version:

$variables['template_files'][] = 'mimemail-message-'. $variables['mailkey'];

Is there a more 'official' way to realize this functionality or could you imagine to add something like this as a small new feature?

Thanks,
Carsten

CommentFileSizeAuthor
#2 mimemail.882528_01.patch1.43 KBsgabe

Comments

sgabe’s picture

Priority: Minor » Normal

The template customization based on mailkey is planned. See a similar issue like #319384: Add $mailkey to body tag as CSS class. The situation is that the module wasn't ready to implement features like this. I hope that time is over and we can add some new features to make Mime Mail rock, but we have to deal with the bugs first.

sgabe’s picture

Status: Active » Needs review
StatusFileSize
new1.43 KB

Attaching a patch against current HEAD. Don't forget to clear the caches for testing.

sgabe’s picture

Status: Needs review » Fixed

Committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -template suggestion, -mailkey

Automatically closed -- issue fixed for 2 weeks with no activity.