Created
July 9, 2015 09:19
-
-
Save kulamochi/241e9a3b2c40a35db8dd to your computer and use it in GitHub Desktop.
[EC-CUBE 2.13] CS_SendMail - overwrite sendmail path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SC_SendMail_Ex extends SC_SendMail | |
{ | |
function getBackendParams($backend) | |
{ | |
parent::getBackendParams($backend); | |
switch ($backend) { | |
case 'sendmail': | |
$arrParams = array( | |
'sendmail_path' => '/usr/sbin/sendmail', | |
'sendmail_args' => '-i', | |
); | |
break; | |
} | |
return $arrParams; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EC-CUBEの初期値と稼働サーバの環境が合わない場合にSC_SendMail.phpを拡張して対応する。
継承するfunctionにて親のparent:: getBackendParamsに引数$backendを渡すこと。