email header encoding everywhere

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

View file

@ -7,6 +7,8 @@
*
*/
require_once('include/email.php');
function invite_post(&$a) {
if(! local_user()) {
@ -56,7 +58,7 @@ function invite_post(&$a) {
else
$nmessage = $message;
$res = mail($recip, sprintf( t('Please join us on Friendica'), $a->config['sitename']),
$res = mail($recip, email_header_encode( t('Please join us on Friendica'),'UTF-8'),
$nmessage,
"From: " . $a->user['email'] . "\n"
. 'Content-type: text/plain; charset=UTF-8' . "\n"