View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006643 | mantisbt | public | 2006-01-27 02:01 | 2008-04-18 03:30 | |
| Reporter | kawai | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 1.0.0rc5 | ||||
| Summary | 0006643: mail charset should be ISO-2022-JP for Japanese language | ||||
| Description | According to the RFC1468 and those implemantations of many Japanese So I created a patch as attached file. | ||||
| Tags | No tags attached. | ||||
| Attached Files | patch.txt (887 bytes)
--- mantis-1.0.0rc5/core/email_api.php 2005-08-05 05:57:50.000000000 +0900
+++ mantis-1.0.0rc5/core/email_api.php.new 2006-01-27 15:39:24.542072000 +0900
@@ -676,6 +676,12 @@
$mail->WordWrap = 80; # set word wrap to 50 characters
$mail->Priority = config_get( 'mail_priority' ); # Urgent = 1, Not Urgent = 5, Disable = 0
$mail->CharSet = lang_get( 'charset', lang_get_current() );
+ if(lang_get('phpmailer_language',lang_get_current())=='ja'){
+ $mail->CharSet = "ISO-2022-JP";
+ $t_subject=mb_convert_encoding($t_subject,"ISO-2022-JP",lang_get( 'charset', lang_get_current() ));
+ $t_message=mb_convert_encoding($t_message,"ISO-2022-JP",lang_get( 'charset', lang_get_current() ));
+ }
+
$mail->Host = config_get( 'smtp_host' );
$mail->From = config_get( 'from_email' );
$mail->Sender = config_get( 'return_path_email' );
| ||||