Index: model.php
===================================================================
--- model.php (revision 1052)
+++ model.php (revision 1053)
@@ -103,6 +103,7 @@
$this->setTO($toList, $emails);
$this->setCC($ccList, $emails);
$this->setBody($body);
+ $this->setErrorLang();
$this->mta->send();
}
catch (phpmailerException $e)
@@ -152,6 +153,12 @@
$this->mta->msgHtml("$body");
}
+ /* 设置错误提示语言。*/
+ private function setErrorLang()
+ {
+ $this->mta->SetLanguage($this->app->getClientLang());
+ }
+
/* 清楚地址和附件。*/
private function clear()
{