From 34b65924b960ac3aff2d1e8f2046764862e929f4 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 25 Jan 2010 09:17:27 +0000 Subject: - fix mail subject encoding with mb_encode_mimeheader() (#1486418) --- program/steps/mail/sendmail.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'program/steps') diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index 560393cc9..230572f66 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -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); } -- cgit v1.2.3