|
|
@@ -41,7 +41,7 @@ class MailUtils |
|
|
|
$merchantCurrent = $this->merchantUtils->getMerchantCurrent(); |
|
|
|
|
|
|
|
$merchantConfigEmailFrom = $merchantCurrent->getMerchantConfig('email-from'); |
|
|
|
$emailFrom = isset($params[self::FROM_EMAIL]) ? $params[self::FROM_EMAIL] : $merchantConfigEmailFrom; |
|
|
|
$emailFrom = (isset($params[self::FROM_EMAIL]) && $params[self::FROM_EMAIL] && strlen($params[self::FROM_EMAIL])) ? $params[self::FROM_EMAIL] : $merchantConfigEmailFrom; |
|
|
|
|
|
|
|
$merchantConfigEmailFromName = $merchantCurrent->getMerchantConfig('email-from-name'); |
|
|
|
$emailFromName = isset($params[self::FROM_NAME]) ? $params[self::FROM_NAME] : $merchantConfigEmailFromName; |