From c9756872bc391de6f9b338847e59f5f2e22320e6 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 8 Jun 2011 15:23:41 -0400 Subject: [PATCH] Wrap email summary and better subject line --- plugins/EmailSummary/useremailsummaryhandler.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/EmailSummary/useremailsummaryhandler.php b/plugins/EmailSummary/useremailsummaryhandler.php index fda04f3cff..f03e8a1dcd 100644 --- a/plugins/EmailSummary/useremailsummaryhandler.php +++ b/plugins/EmailSummary/useremailsummaryhandler.php @@ -120,7 +120,7 @@ class UserEmailSummaryHandler extends QueueHandler $new_top = $notice->_items[0]->id; } - $out = new XMLStringer(); + $out = new XMLStringer(true); $out->elementStart('div', array('width' => '100%', 'style' => 'background-color: #ffffff; border: 4px solid #4c609a; padding: 10px;')); @@ -206,8 +206,13 @@ class UserEmailSummaryHandler extends QueueHandler // FIXME: do something for people who don't like HTML email + $subject = sprintf(_m('Your latest updates from %s'), common_config('site', 'name')); + // TRANS: Subject for e-mail. - mail_to_user($user, _m('Updates from your network'), $body, + + mail_to_user($user, + $subject, + $body, array('Content-Type' => 'text/html; charset=UTF-8')); if (empty($ess)) { -- 2.39.5