|
|
|
|
|
|
|
|
$merchantCurrent = $this->merchantUtils->getMerchantCurrent(); |
|
|
$merchantCurrent = $this->merchantUtils->getMerchantCurrent(); |
|
|
|
|
|
|
|
|
$merchantConfigEmailFrom = $merchantCurrent->getMerchantConfig('email-from'); |
|
|
$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'); |
|
|
$merchantConfigEmailFromName = $merchantCurrent->getMerchantConfig('email-from-name'); |
|
|
$emailFromName = isset($params[self::FROM_NAME]) ? $params[self::FROM_NAME] : $merchantConfigEmailFromName; |
|
|
$emailFromName = isset($params[self::FROM_NAME]) ? $params[self::FROM_NAME] : $merchantConfigEmailFromName; |