The last release removed a array_merge() function that added the context as being part of params. This removal created a big issue related to not being able to assign variables on the fly. I had to revert this change. I am not sure if I am doing something wrong here!

mimemail_action.module (line 47)

BEFORE:
$params = array_merge($context, array(
'context' => array(
'subject' => token_replace($context['subject'], $context),
'body' => token_replace($context['body'], $context),
),
'key' => $context['key'],
'cc' => $context['cc'],
'bcc' => $context['bcc'],
'reply-to' => $context['reply-to'],
'plaintext' => token_replace($context['plaintext'], $context),
'attachments' => $context['attachments'],
));

CURRENT:
$params = array(
'context' => array(
'subject' => token_replace($context['subject'], $context),
'body' => token_replace($context['body'], $context),
),
'key' => $context['key'],
'cc' => $context['cc'],
'bcc' => $context['bcc'],
'reply-to' => $context['reply-to'],
'plaintext' => token_replace($context['plaintext'], $context),
'attachments' => $context['attachments'],
);

Comments

farfanfelipe created an issue. See original summary.

sgabe’s picture

Priority: Critical » Normal

The module works like this since the D7 port, which was done 4 years ago, so this issue seems not to be related to the latest release. I believe you have an undocumented custom modification in the module. See the related commits in the repository.

TR’s picture

Status: Active » Closed (cannot reproduce)
Issue tags: -actions context

Confirmed that the array_merge() has never been in this module, and it was probably something you added yourself. Perhaps it's needed for your use case, but you didn't supply any information about how to reproduce the error you see.

Feel free to reopen this issue if you can provide detailed steps for reproducing the error with the current version of Mime Mail.