fix email

This commit is contained in:
Yuri Kuznetsov
2019-12-18 10:11:37 +02:00
parent 629f410204
commit 0d744c5e7f
+2 -2
View File
@@ -198,8 +198,8 @@ class Email extends Record
}
if ($smtpParams) {
if ($emailAddress) {
$this->applySmtpHandler($this->getUser()->id, $emailAddress, $smtpParams);
if ($fromAddress) {
$this->applySmtpHandler($this->getUser()->id, $fromAddress, $smtpParams);
}
$emailSender->useSmtp($smtpParams);
}