aboutsummaryrefslogtreecommitdiffstats
path: root/mod/lostpass.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-14 17:13:13 -0700
committerFriendika <info@friendika.com>2011-04-14 17:13:13 -0700
commitde131c9e58ac2b14380d145d643bf2bd902ae9dc (patch)
treeb39152160902426b8929165ba82f7c6311610ab8 /mod/lostpass.php
parentc3b42fdbcb2165045e0ae759e103cc7d44b3f584 (diff)
downloadvolse-hubzilla-de131c9e58ac2b14380d145d643bf2bd902ae9dc.tar.gz
volse-hubzilla-de131c9e58ac2b14380d145d643bf2bd902ae9dc.tar.bz2
volse-hubzilla-de131c9e58ac2b14380d145d643bf2bd902ae9dc.zip
set utf-8 on all emails
Diffstat (limited to 'mod/lostpass.php')
-rw-r--r--mod/lostpass.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/lostpass.php b/mod/lostpass.php
index c46a57e6a..8d1cf7629 100644
--- a/mod/lostpass.php
+++ b/mod/lostpass.php
@@ -36,7 +36,11 @@ function lostpass_post(&$a) {
));
$res = mail($email, sprintf( t('Password reset requested at %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' );
+
goaway($a->get_baseurl());
}
@@ -94,7 +98,10 @@ function lostpass_content(&$a) {
'$new_password' => $new_password,
'$uid' => $newuid ));
- $res = mail($email,"Your password has changed at {$a->config['sitename']}",$email_tpl,"From: Administrator@{$_SERVER[SERVER_NAME]}");
+ $res = mail($email,"Your password has changed at {$a->config['sitename']}",$email_tpl,
+ 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n"
+ . 'Content-type: text/plain; charset=UTF-8' . "\n"
+ . 'Content-transfer-encoding: 8bit' );
return $o;
}