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
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

Sutharsan - October 30, 2009 - 14:23
Status:active» fixed

Use the latest 6.x-1.x-dev.

#2

System Message - November 13, 2009 - 14:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.