В файле system/library/mail.php поменять код отправки на
Код: Выделить всё
public function send() {
try {
if (!$this->to) {
throw new \Exception('Error: E-Mail to required!');
}
if (!$this->from) {
throw new \Exception('Error: E-Mail from required!');
}
if (!$this->sender) {
throw new \Exception('Error: E-Mail sender required!');
}
if (!$this->subject) {
throw new \Exception('Error: E-Mail subject required!');
}
if ((!$this->text) && (!$this->html)) {
throw new \Exception('Error: E-Mail message required!');
}
foreach (get_object_vars($this) as $key => $value) {
$this->adaptor->$key = $value;
}
$this->adaptor->send();
} catch (\Exception $e) {
$log = new Log('error.log');
$log->write("
" . $e->getCode() . " " . $e->getFile() . " " . $e->getLine() . " " . $e->getMessage() . "
" . $e->getTraceAsString() . "
");
//echo $e->getMessage()." catch out\n";
}
}