Mail template for anonymous subscriptions
sdelbosc - October 30, 2009 - 09:54
| Project: | Simplenews |
| Version: | 6.x-1.0-rc6 |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The mail sent for anonymous users contains "!mailto" and "!site" strings.
The problem comes from simplenews.module:
<?php
...
$vars = $subscription->uid ? user_mail_tokens($subscription, $language) : array();
...
?>I would change it to:
<?php
...
$vars = $subscription->uid ? user_mail_tokens($subscription, $language) : user_mail_tokens($context['account'], $language);
...
?>
#1
Use the latest 6.x-1.x-dev.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.