to fix it line 45 and 46 of mimemail_action.module should be replaced with

<?php
      'subject' =>  token_replace($context['subject'], $context),
      'body' =>  token_replace($context['body'], $context),
?>
CommentFileSizeAuthor
#3 mimemail-1873348-3.patch846 bytessgabe

Comments

sgabe’s picture

Status: Active » Postponed (maintainer needs more info)

This should be done in the hook_mail implementation, see lines 166-167 in mimemail.module.

tutumlum’s picture

Status: Postponed (maintainer needs more info) » Active

I have tested using tokens in subject and body of HTML email, mimemail did not replaced the tokens. It replaces only "To". I have seen that mimemail_action.module, line 30 has

 $to = token_replace($context['to'], $context);

as I suggested for others.

sgabe’s picture

Title: Cannot use tokens in subject and body of HTML email action » Cannot use tokens in subject and body of HTML email action
Status: Active » Fixed
StatusFileSize
new846 bytes

The attached patch has been committed.

Status: Fixed » Closed (fixed)

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