Ignore:
Timestamp:
2011/03/07 15:23:39 (13 years ago)
Author:
Seasoft
Message:

#627(ソース整形・ソースコメントの改善)
#628(未使用処理・定義などの削除)

File:
1 edited

Legend:

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

    r19940 r20538  
    4949        $this->host = SMTP_HOST; 
    5050        $this->port = SMTP_PORT; 
    51         mb_language( "Japanese" ); 
     51        mb_language( 'Japanese' ); 
    5252 
    5353        //-- PEAR::Mailを使ってメール送信オブジェクト作成 
     
    6565        if($to != "") { 
    6666            $this->to = $this->getNameAddress($to_name, $to); 
    67             $this->setRecip("To", $to); 
     67            $this->setRecip('To', $to); 
    6868        } 
    6969    } 
     
    7878        if($cc != "") { 
    7979            $this->cc = $this->getNameAddress($cc_name, $cc); 
    80             $this->setRecip("Cc", $cc); 
     80            $this->setRecip('Cc', $cc); 
    8181        } 
    8282    } 
     
    8686        if($bcc != "") { 
    8787            $this->bcc = $bcc; 
    88             $this->setRecip("Bcc", $bcc); 
     88            $this->setRecip('Bcc', $bcc); 
    8989        } 
    9090    } 
     
    104104    // 件名の設定 
    105105    function setSubject($subject) { 
    106         $this->subject = mb_encode_mimeheader($subject, "JIS", 'B', "\n"); 
     106        $this->subject = mb_encode_mimeheader($subject, 'JIS', 'B', "\n"); 
    107107        $this->subject = str_replace("\x0D\x0A", "\n", $this->subject); 
    108108        $this->subject = str_replace("\x0D", "\n", $this->subject); 
     
    112112    // 本文の設定 
    113113    function setBody($body) { 
    114         $this->body = mb_convert_encoding($body, "JIS", CHAR_CODE); 
     114        $this->body = mb_convert_encoding($body, 'JIS', CHAR_CODE); 
    115115    } 
    116116 
     
    123123        ); 
    124124        //-- PEAR::Mailを使ってメール送信オブジェクト作成 
    125         $this->objMail =& Mail::factory("smtp", $arrHost); 
     125        $this->objMail =& Mail::factory('smtp', $arrHost); 
    126126 
    127127    } 
     
    135135        ); 
    136136        //-- PEAR::Mailを使ってメール送信オブジェクト作成 
    137         $this->objMail =& Mail::factory("smtp", $arrHost); 
     137        $this->objMail =& Mail::factory('smtp', $arrHost); 
    138138    } 
    139139 
     
    145145                $_name = ereg_replace("<","<", $_name); 
    146146                $_name = ereg_replace(">",">", $_name); 
    147                 $_name = mb_encode_mimeheader($_name, "JIS", 'B', "\n"); 
     147                $_name = mb_encode_mimeheader($_name, 'JIS', 'B', "\n"); 
    148148                $name_address = "\"". $_name . "\"<" . $mail_address . ">"; 
    149149            } else { 
     
    244244        switch ($this->backend) { 
    245245            // PEAR::Mail_mail#send は、(他のメーラーバックエンドと異なり) 第1引数を To: として扱う。Cc: や Bcc: は、ヘッダー情報から処理する。 
    246         case "mail": 
     246        case 'mail': 
    247247            return $this->to; 
    248248            break; 
    249         case "sendmail": 
    250         case "smtp": 
     249        case 'sendmail': 
     250        case 'smtp': 
    251251        default: 
    252252            return $this->arrRecip; 
     
    292292    function getBackendParams($backend) { 
    293293        switch ($backend) { 
    294         case "mail": 
     294        case 'mail': 
    295295            $arrParams = array(); 
    296296            break; 
    297         case "sendmail": 
     297        case 'sendmail': 
    298298            $arrParams = array('sendmail_path' => '/usr/bin/sendmail', 
    299299                               'sendmail_args' => '-i' 
    300300                               ); 
    301301            break; 
    302         case "smtp": 
     302        case 'smtp': 
    303303        default: 
    304304            $arrParams = array( 
Note: See TracChangeset for help on using the changeset viewer.