diff --git a/src/config/hisite.php b/src/config/hisite.php
index <HASH>..<HASH> 100644
--- a/src/config/hisite.php
+++ b/src/config/hisite.php
@@ -95,9 +95,6 @@ return [
                 ],
             ],
         ],
-        'errorHandler' => [
-            'errorAction' => 'site/error',
-        ],
         'authClientCollection' => [
             'class' => \hiam\authclient\Collection::class,
             'clients' => [
@@ -166,6 +163,9 @@ return [
             \hipanel\components\ApiConnectionInterface::class => function () {
                 return Yii::$app->get('hiart');
             },
+            \yii\mail\MailerInterface::class => function() {
+                return Yii::$app->get('mailer');
+            },
             \hiqdev\thememanager\menus\AbstractNavbarMenu::class => [
                 'class' => \hipanel\menus\NavbarMenu::class,
             ],
Removed default errorAction, added MailerInterface to DI