aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_notify.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/dfrn_notify.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/dfrn_notify.php')
-rw-r--r--mod/dfrn_notify.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php
index f6f68d348..eb9d71fe3 100644
--- a/mod/dfrn_notify.php
+++ b/mod/dfrn_notify.php
@@ -401,7 +401,11 @@ function dfrn_notify_post(&$a) {
));
$res = mail($importer['email'], sprintf(t('%s commented on an item at %s'), $from , $a->config['sitename']),
- $email_tpl, "From: " . t('Administrator') . '@' . $a->get_hostname() );
+ $email_tpl,
+ 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n"
+ . 'Content-type: text/plain; charset=UTF-8' . "\n"
+ . 'Content-transfer-encoding: 8bit' );
+
}
}
xml_status(0);
@@ -487,7 +491,11 @@ function dfrn_notify_post(&$a) {
));
$res = mail($importer['email'], sprintf( t("%s commented on an item at %s") , $from ,$a->config['sitename']),
- $email_tpl, "From: ".t("Administrator") . "@". $a->get_hostname() );
+ $email_tpl,
+ 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n"
+ . 'Content-type: text/plain; charset=UTF-8' . "\n"
+ . 'Content-transfer-encoding: 8bit' );
+
break;
}
}