diff --git a/mimemail.module b/mimemail.module index c168082..b0887a2 100644 --- a/mimemail.module +++ b/mimemail.module @@ -366,7 +366,8 @@ function mimemail_prepare_message($message) { 'key' => $key, 'recipient' => $to, 'subject' => $subject, - 'body' => $body + 'body' => $body, + 'message' => $message, ); $body = theme($hook, $variables); diff --git a/theme/mimemail.theme.inc b/theme/mimemail.theme.inc index 2a2df7c..95c07d3 100644 --- a/theme/mimemail.theme.inc +++ b/theme/mimemail.theme.inc @@ -10,7 +10,7 @@ function mimemail_theme_theme() { return array( 'mimemail_message' => array( - 'variables' => array('module' => NULL, 'key' => NULL, 'recipient' => NULL, 'subject' => NULL, 'body' => NULL), + 'variables' => array('module' => NULL, 'key' => NULL, 'recipient' => NULL, 'subject' => NULL, 'body' => NULL, 'message' => array()), 'template' => 'mimemail-message', 'pattern' => 'mimemail_message__', 'file' => 'mimemail.theme.inc',