- fix mail subject encoding with mb_encode_mimeheader() (#1486418)

release-0.6
alecpl 15 years ago
parent 49d401bf57
commit 34b65924b9

@ -462,10 +462,11 @@ $data = $RCMAIL->plugins->exec_hook('outgoing_message_headers', array('headers'
$headers = $data['headers'];
// encoding subject header with mb_encode provides better results with asian characters
if (function_exists("mb_encode_mimeheader"))
if (function_exists('mb_encode_mimeheader'))
{
mb_internal_encoding($message_charset);
$headers['Subject'] = mb_encode_mimeheader($headers['Subject'], $message_charset, 'Q');
$headers['Subject'] = mb_encode_mimeheader($headers['Subject'],
$message_charset, 'Q', $RCMAIL->config->header_delimiter(), 8);
mb_internal_encoding(RCMAIL_CHARSET);
}

Loading…
Cancel
Save