diff options
author | millette <millette@controlyourself.ca> | 2008-12-04 16:34:14 -0500 |
---|---|---|
committer | millette <millette@controlyourself.ca> | 2008-12-04 16:34:14 -0500 |
commit | 7def4d227f655202176cb913a87127704a058a14 (patch) | |
tree | 7b146e32dbbf9b486668dd6e4b93bacbae00ab8e /lib | |
parent | e508fd5b5e1a357742122fb59f84badc91bf740c (diff) |
set email content type to text/plain; utf-8
darcs-hash:20081204213414-099f7-631e8aecc8ce2d8725b93e23e15e6e97f06a6bac.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mail.php | 3 |
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)) { |