Skip to content

Commit

Permalink
Merge pull request #618 from bekatoros/patch-1
Browse files Browse the repository at this point in the history
Add UTF-8 support when sending e-mail for password reset and User activation
  • Loading branch information
patrickmj committed May 8, 2014
2 parents 283e77f + 11ac39c commit 7e1b075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/UsersController.php
Expand Up @@ -95,7 +95,7 @@ private function _sendResetPasswordEmail($toEmail, $activationCode)
{
$siteTitle = get_option('site_title');

$mail = new Zend_Mail();
$mail = new Zend_Mail('UTF-8');
$mail->addTo($toEmail);
$mail->addHeader('X-Mailer', 'PHP/' . phpversion());

Expand Down Expand Up @@ -354,7 +354,7 @@ protected function sendActivationEmail($user)
. __('%s Administrator', $siteTitle);
$subject = __('Activate your account with the %s repository', $siteTitle);

$mail = new Zend_Mail();
$mail = new Zend_Mail('UTF-8');
$mail->setBodyText($body);
$mail->setFrom($from, "$siteTitle Administrator");
$mail->addTo($user->email, $user->name);
Expand Down

0 comments on commit 7e1b075

Please sign in to comment.