Changeset 11984 for branches/comu/data/class/GC_SendMail.php
- Timestamp:
- 2007/03/28 15:05:09 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu/data/class/GC_SendMail.php
r11730 r11984 35 35 $name = ereg_replace("<","¡ã", $to_name); 36 36 $name = ereg_replace(">","¡ä", $name); 37 $name = mb_encode_mimeheader( $name);37 $name = mb_encode_mimeheader(mb_convert_encoding($name, "JIS", CHAR_CODE)); 38 38 $this->to = $name . "<" . $to . ">"; 39 39 } else { … … 46 46 $this->to = $to; 47 47 $this->subject = $subject; 48 $this->body = $body; 48 49 // iso-2022-jp¤À¤ÈÆüìʸ»ú¤¬¡©¤ÇÁ÷¿®¤µ¤ì¤ë¤Î¤ÇJIS¤ò»ÈÍѤ¹¤ë¡£ 50 $this->body = mb_convert_encoding( $body, "JIS", CHAR_CODE); 51 49 52 // ¥Ø¥Ã¥À¡¼¤ËÆüËܸì¤ò»ÈÍѤ¹¤ë¾ì¹ç¤ÏMb_encode_mimeheader¤Ç¥¨¥ó¥³¡¼¥É¤¹¤ë¡£ 50 53 $from_name = ereg_replace("<","¡ã", $from_name); 51 54 $from_name = ereg_replace(">","¡ä", $from_name); 52 55 $from_name = mb_convert_encoding($from_name,"JIS",CHAR_CODE); 53 56 $this->header = "From: ". Mb_encode_mimeheader( $from_name )."<".$fromaddress.">\n"; 54 57 $this->header .= "Reply-To: ". $reply_to . "\n"; … … 56 59 $this->header .= "Bcc: " . $bcc . "\n"; 57 60 $this->header .= "Errors-To: ". $errors_to ."\n"; 61 58 62 $this->return_path = $return_path; 59 63 } 60 64 61 62 65 function setItemHtml( $to, $subject, $body, $fromaddress, $from_name, $reply_to, $return_path, $errors_to="", $bcc="", $cc ="" ) { 63 66 64 67 $this->to = $to; 65 $this->subject = Mb_encode_mimeheader($subject);66 $this->body = mb_convert_encoding( $body, " iso-2022-jp", CHAR_CODE);68 $this->subject = mb_encode_mimeheader($subject); 69 $this->body = mb_convert_encoding( $body, "JIS", CHAR_CODE); 67 70 $this->header = "Mime-Version: 1.0\n"; 68 71 $this->header .= "Content-Type: text/html; charset=iso-2022-jp\n";
Note: See TracChangeset
for help on using the changeset viewer.