Provide context for altering messages
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3111185. -->
Reported by: [jenlampton](https://www.drupal.org/user/85586)
>>>
<p>I would like to be able to alter my message body to get around a limitaiton with the HTML formatting, but since there is no context available I am unable to do so. The attached patch passes in several contexts for the message: <code>$params</code> which are the results of the views_send forms, <code>$token_data</code>, and <code>$views_send_token_data</code> so I can re-do the token replacements. </p>
<p>This patch also includes a fix to support the combination of the mailsystem and htmlmail modules, which was not previously possible. Please Let me know if you would prefer that be done in a separate issue.</p>
issue