From 7def4d227f655202176cb913a87127704a058a14 Mon Sep 17 00:00:00 2001 From: millette Date: Thu, 4 Dec 2008 16:34:14 -0500 Subject: [PATCH] set email content type to text/plain; utf-8 darcs-hash:20081204213414-099f7-631e8aecc8ce2d8725b93e23e15e6e97f06a6bac.gz --- lib/mail.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/mail.php b/lib/mail.php index 3280c1b7b7..e627730a7a 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)) { -- 2.39.5