diff options
author | alecpl <alec@alec.pl> | 2010-01-25 09:17:27 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-01-25 09:17:27 +0000 |
commit | 34b65924b960ac3aff2d1e8f2046764862e929f4 (patch) | |
tree | 9ac4d3564e851e64dc126846a01a5cf2b60607fb /program/steps | |
parent | 49d401bf57d6d2d90510dc6bebe62bf12987d0de (diff) |
- fix mail subject encoding with mb_encode_mimeheader() (#1486418)
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/sendmail.inc | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |