]> git.mxchange.org Git - friendica.git/blobdiff - mod/invite.php
deprecate load_view_file
[friendica.git] / mod / invite.php
index 84fa978ad1aafb397e82e55296256fd94d000202..b34bb7d74e0ed12e636b79edab355577e244d6f5 100644 (file)
@@ -30,7 +30,11 @@ function invite_post(&$a) {
                }
 
                $res = mail($recip, sprintf(t('Please join my network on %s'), $a->config['sitename']), 
-                       $message, "From: " . $a->user['email']);
+                       $message, 
+                       "From: " . $a->user['email'] . "\n"
+                       . 'Content-type: text/plain; charset=UTF-8' . "\n"
+                       . 'Content-transfer-encoding: 8bit' );
+
                if($res) {
                        $total ++;
                }
@@ -51,7 +55,7 @@ function invite_content(&$a) {
                return;
        }
 
-       $tpl = load_view_file('view/invite.tpl');
+       $tpl = get_markup_template('invite.tpl');
        
        $o = replace_macros($tpl, array(
                '$invite' => t('Send invitations'),