- Timestamp:
- 2013/01/17 18:03:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/SC_SendMail.php
r22100 r22268 109 109 // 件名の設定 110 110 function setSubject($subject) { 111 $this->subject = mb_encode_mimeheader($subject, 'JIS', 'B', "\n");111 $this->subject = mb_encode_mimeheader($subject, MAIL_CHARACTER_CODE, 'B', "\n"); 112 112 $this->subject = str_replace(array("\r\n", "\r"), "\n", $this->subject); 113 113 } … … 115 115 // 本文の設定 116 116 function setBody($body) { 117 // iso-2022-jpだと特殊文字が?で送信されるのでJISを使用する 118 $this->body = mb_convert_encoding($body, 'JIS', CHAR_CODE); 117 $this->body = mb_convert_encoding($body, MAIL_CHARACTER_CODE, CHAR_CODE); 119 118 } 120 119 … … 157 156 // 制御文字を変換する。 158 157 $_name = $name; 159 $_name = mb_encode_mimeheader($_name, 'JIS', 'B', "\n");158 $_name = mb_encode_mimeheader($_name, MAIL_CHARACTER_CODE, 'B', "\n"); 160 159 $_name = str_replace('"', '\"', $_name); 161 160 $name_address = sprintf('"%s" <%s>', $_name, $mail_address); … … 238 237 function getTEXTHeader() { 239 238 $arrHeader = $this->getBaseHeader(); 240 $arrHeader['Content-Type'] = 'text/plain; charset=" ISO-2022-JP"';239 $arrHeader['Content-Type'] = 'text/plain; charset="' . MAIL_HEADER_CONTENT_TYPE . '"'; 241 240 return $arrHeader; 242 241 } … … 245 244 function getHTMLHeader() { 246 245 $arrHeader = $this->getBaseHeader(); 247 $arrHeader['Content-Type'] = 'text/html; charset=" ISO-2022-JP"';246 $arrHeader['Content-Type'] = 'text/html; charset="' . MAIL_HEADER_CONTENT_TYPE . '"'; 248 247 return $arrHeader; 249 248 }
Note: See TracChangeset
for help on using the changeset viewer.