Ignore:
Timestamp:
2008/04/04 20:17:38 (16 years ago)
Author:
satou
Message:

メールの「件名」文字化け対策

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/SC_SendMail.php

    r17092 r17216  
    112112    function setSubject($subject) { 
    113113        $this->subject = mb_encode_mimeheader($subject); 
     114        $this->subject = str_replace("\x0D\x0A", "\n", $this->subject); 
     115        $this->subject = str_replace("\x0D", "\n", $this->subject); 
     116        $this->subject = str_replace("\x0A", "\n", $this->subject); 
    114117    } 
    115118 
Note: See TracChangeset for help on using the changeset viewer.