/** * メール送信ログ * @param ExtCakeEmail $mail */ public static function writeMailResult(ExtCakeEmail $mail, $sendResult) { $auth = self::$auth; $time = self::$timestamp; $remoteIp = self::$remoteIp; if ($sendResult) { $log = new MailSuccessLog($time, $remoteIp); $log->setAuth($auth); $log->setExtCakeEmail($mail); $log->write(); } else { $log = new MailErrorLog($time, $remoteIp); $log->setAuth($auth); $log->setExtCakeEmail($mail); $log->write(); } }