set email content type to text/plain; utf-8

darcs-hash:20081204213414-099f7-631e8aecc8ce2d8725b93e23e15e6e97f06a6bac.gz
This commit is contained in:
millette 2008-12-04 16:34:14 -05:00
parent e508fd5b5e
commit 7def4d227f

View File

@ -39,6 +39,9 @@ function mail_backend() {
function mail_send($recipients, $headers, $body) { function mail_send($recipients, $headers, $body) {
$backend = mail_backend(); $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 assert($backend); # throws an error if it's bad
$sent = $backend->send($recipients, $headers, $body); $sent = $backend->send($recipients, $headers, $body);
if (PEAR::isError($sent)) { if (PEAR::isError($sent)) {