fix email

This commit is contained in:
yuri
2017-11-24 15:28:27 +02:00
parent 468c1c5fc2
commit 30ebcf6d76
+5
View File
@@ -114,6 +114,11 @@ class Email extends Record
if (in_array($fromAddress, $userAddressList)) {
if ($primaryUserAddress === $fromAddress) {
$smtpParams = $this->getPreferences()->getSmtpParams();
if ($smtpParams) {
if (array_key_exists('password', $smtpParams)) {
$smtpParams['password'] = $this->getCrypt()->decrypt($smtpParams['password']);
}
}
}
if (!$smtpParams) {
$emailAccountService = $this->getServiceFactory()->create('EmailAccount');