fix email

This commit is contained in:
Yuri Kuznetsov
2020-04-26 12:14:44 +03:00
parent a184f63c00
commit b53d96b9df
+1 -1
View File
@@ -180,7 +180,7 @@ class Email extends Record
if ($user && in_array($fromAddress, $userAddressList)) {
$primaryUserAddress = strtolower($user->get('emailAddress'));
if ($primaryUserAddress === $fromAddress) {
$preferences = $this->getEntityManager()->get('Preferences', $user->id);
$preferences = $this->getEntityManager()->getEntity('Preferences', $user->id);
if ($preferences) {
$smtpParams = $preferences->getSmtpParams();
if ($smtpParams) {