X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fregmod.php;h=fe29cb185f66e75fc885e4a3fef301b1a5373060;hb=681885a120fb44ddb0cee5cab1191a6aea67b3e0;hp=2cbe810bc94c4e62c3a8e8cbf5ebfc9d9131735d;hpb=1bba63fb607c2cb5fb2c002e63ad7128ecf8b1ea;p=friendica.git diff --git a/mod/regmod.php b/mod/regmod.php index 2cbe810bc9..fe29cb185f 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -79,7 +79,7 @@ function regmod_content(&$a) { proc_run('php',"include/directory.php","$url"); } - $email_tpl = load_view_file("view/register_open_eml.tpl"); + $email_tpl = get_intltext_template("register_open_eml.tpl"); $email_tpl = replace_macros($email_tpl, array( '$sitename' => $a->config['sitename'], '$siteurl' => $a->get_baseurl(), @@ -90,7 +90,10 @@ function regmod_content(&$a) { )); $res = mail($user[0]['email'], sprintf(t('Registration details for %s'), $a->config['sitename']), - $email_tpl,'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] ); + $email_tpl, + 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n" + . 'Content-type: text/plain; charset=UTF-8' . "\n" + . 'Content-transfer-encoding: 8bit' ); if($res) { notice( t('Account approved.') . EOL );