email header encoding everywhere

This commit is contained in:
friendica 2013-01-04 15:47:29 -08:00
parent a5755b59a8
commit 07ba4da634
8 changed files with 31 additions and 19 deletions

View file

@ -1,5 +1,7 @@
<?php
require_once('include/email.php');
function user_allow($hash) {
$a = get_app();
@ -49,9 +51,9 @@ function user_allow($hash) {
'$uid' => $user[0]['uid']
));
$res = mail($user[0]['email'], sprintf(t('Registration details for %s'), $a->config['sitename']),
$res = mail($user[0]['email'], email_header_encode( sprintf(t('Registration details for %s'), $a->config['sitename']), 'UTF-8'),
$email_tpl,
'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n"
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n"
. 'Content-type: text/plain; charset=UTF-8' . "\n"
. 'Content-transfer-encoding: 8bit' );