Closed (fixed)
Project:
Mime Mail
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2012 at 10:40 UTC
Updated:
12 Apr 2013 at 13:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
sgabe commentedWe could use
$message['id'](which is$module . '_' . $key), instead of$message['key']. Please try the attached patch and report back.Comment #2
sgabe commentedPlease ignore the previous patch.
Comment #3
jjchinquistHello sgabe,
The $variables['id'] cannot be used, as that is set by Drupal core. Can we use "mail_id" or "mail_key"?
I just attempted to reproduce the patch using "mail_id" instead of "id", and when I print the variable in the mimemail-message.tpl.php, I get an empty string.
If I can get to it before, then I will submit a revised patch.
Regards,
Jeremy
Comment #4
djg_tram commentedSorry, I really don't have time to roll this into a real patch now but this can be solved in a simpler and nicer way, here it is how.
mimemail.module
* in mimemail_prepare_message():
* same function, near the end:
mimemail.theme.inc
* in mimemail_theme_theme():
* end of template_preprocess_mimemail_message():
Thanks if you can include it somehow.
Comment #5
sgabe commentedThe attached patch has been committed.