1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[ticket/11103] Use appropriate email templates to send notifications

Fixing a number of bugs

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-14 18:05:13 -05:00
parent 8e977544fb
commit 959c81d00e
13 changed files with 156 additions and 59 deletions

View File

@@ -82,19 +82,15 @@ class phpbb_notifications_method_email extends phpbb_notifications_method_base
continue;
}
$messenger->template('notification', $user['user_lang']);
$messenger->template($notification->email_template, $user['user_lang']);
$messenger->to($user['user_email'], $user['username']);
$messenger->assign_vars(array(
'USERNAME' => $user['username'],
$messenger->assign_vars(array_merge(array(
'USERNAME' => $user['username'],
'MESSAGE' => htmlspecialchars_decode($notification->get_title()),
'U_VIEW_MESSAGE' => $notification->get_full_url(),
'U_UNSUBSCRIBE' => $notification->get_unsubscribe_url(),
));
'U_NOTIFICATION_SETTINGS' => generate_board_url() . '/ucp.' . $this->php_ext . '?i=notifications', // todo Update URL
), $notification->get_email_template_variables()));
$messenger->send($this->notify_method);
}