Ignore:
Timestamp:
2012/07/31 16:59:42 (12 years ago)
Author:
Seasoft
Message:

#1906 (SC_SendMail#sendMail のエラー出力が不適切)

File:
1 edited

Legend:

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

    r21926 r21983  
    265265        $result = $this->objMail->send($recip, $header, $this->body); 
    266266        if (PEAR::isError($result)) { 
    267             GC_Utils_Ex::gfPrintLog($result->getMessage()); 
     267            // XXX Windows 環境では SJIS でメッセージを受け取るようなので変換する。 
     268            $msg = mb_convert_encoding($result->getMessage(), CHAR_CODE, 'auto'); 
     269            $msg = 'メール送信に失敗しました。[' . $msg . ']'; 
     270            trigger_error($msg, E_USER_WARNING); 
    268271            GC_Utils_Ex::gfDebugLog($header); 
    269272            return false; 
Note: See TracChangeset for help on using the changeset viewer.