list($displayName, $email) = CRM_Mailing_Event_BAO_MailingEventQueue::getContactInfo($queue_id);
$this->assign('display_name', $displayName);
+ $nameMasked = '';
+ $names = explode(' ', $displayName);
+ foreach ($names as $name) {
+ $nameMasked .= substr($name, 0, 2) . '***** ';
+ }
+ $this->assign('name_masked', $nameMasked);
$emailMasked = CRM_Utils_String::maskEmail($email);
$this->assign('email_masked', $emailMasked);
$this->assign('email', $email);
<div>
{if $groupExist}
<div class="messages status no-popup">
- {ts}Are you sure you want to be removed from the mailing list(s) shown below:{/ts}<br/>
+ {ts 1=$name_masked}Are you sure you want to remove %1 from the mailing list(s) shown below:{/ts}<br/>
</div>
<table class="selector" style="width: auto; margin-top: 20px;">
{counter start=0 skip=1 print=false}
{/foreach}
</table>
<div class="crm-block crm-form-block crm-miscellaneous-form-block">
- <p>{ts}You are requesting to unsubscribe this email address:{/ts}</p>
- <p><strong>{$email_masked}</strong></p>
+ <p>{ts 1=$name_masked}You are requesting to unsubscribe <strong>all email addresses for %1</strong> from the above mailing list.{/ts}</p>
<p>
{ts}If this is your email address and you <strong>wish to unsubscribe</strong> please click the <strong>Unsubscribe</strong> button to confirm.{/ts}
</p>