diff --git a/application/Espo/Modules/Crm/Services/InboundEmail.php b/application/Espo/Modules/Crm/Services/InboundEmail.php index e3ddaf690c..307f3392e3 100644 --- a/application/Espo/Modules/Crm/Services/InboundEmail.php +++ b/application/Espo/Modules/Crm/Services/InboundEmail.php @@ -123,7 +123,7 @@ class InboundEmail extends \Espo\Services\Record throw new Error(); } - $importer = \Espo\Core\Mail\Importer($this->getEntityManager()); + $importer = new \Espo\Core\Mail\Importer($this->getEntityManager()); $teamId = $inboundEmail->get('teamId'); $userId = $this->getUser()->id; diff --git a/application/Espo/Services/EmailAccount.php b/application/Espo/Services/EmailAccount.php index 94a6c29374..807c1dc14c 100644 --- a/application/Espo/Services/EmailAccount.php +++ b/application/Espo/Services/EmailAccount.php @@ -74,7 +74,7 @@ class EmailAccount extends Record throw new Error(); } - $importer = \Espo\Core\Mail\Importer($this->getEntityManager()); + $importer = new \Espo\Core\Mail\Importer($this->getEntityManager()); $user = $this->getEntityManager()->getEntity('User', $emailAccount->get('assignedUserId'));