summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mail.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 3280c1b7b..e627730a7 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -39,6 +39,9 @@ function mail_backend() {
function mail_send($recipients, $headers, $body) {
$backend = mail_backend();
+ if (!isset($headers['Content-Type'])) {
+ $headers['Content-Type'] = 'text/plain; charset=UTF-8';
+ }
assert($backend); # throws an error if it's bad
$sent = $backend->send($recipients, $headers, $body);
if (PEAR::isError($sent)) {