From 7def4d227f655202176cb913a87127704a058a14 Mon Sep 17 00:00:00 2001 From: millette Date: Thu, 4 Dec 2008 16:34:14 -0500 Subject: set email content type to text/plain; utf-8 darcs-hash:20081204213414-099f7-631e8aecc8ce2d8725b93e23e15e6e97f06a6bac.gz --- lib/mail.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/mail.php') 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)) { -- cgit v1.2.3-54-g00ecf