set email content type to text/plain; utf-8
darcs-hash:20081204213414-099f7-631e8aecc8ce2d8725b93e23e15e6e97f06a6bac.gz
This commit is contained in:
parent
e508fd5b5e
commit
7def4d227f
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user