fix imap smtp handlers

This commit is contained in:
yuri
2019-03-06 11:33:27 +02:00
parent 7074467fc2
commit 08d5edd991
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ class Email extends Record
$GLOBALS['log']->error("Send Email: Could not create Smtp Handler for {$emailAddress}. Error: " . $e->getMessage());
}
if (method_exists($handler, 'applyParams')) {
$handler->applyParams($userId, $params);
$handler->applyParams($userId, $emailAddress, $params);
}
}
}
+1 -1
View File
@@ -131,7 +131,7 @@ class EmailAccount extends Record
$GLOBALS['log']->error("EmailAccount: Could not create Imap Handler for {$emailAddress}. Error: " . $e->getMessage());
}
if (method_exists($handler, 'prepareProtocol')) {
$imapParams = $handler->prepareProtocol($userId, $params);
$imapParams = $handler->prepareProtocol($userId, $emailAddress, $params);
}
}
}