public function setFrom($from)
    {
	$result = $this->_senderResolver->resolve($from, $this->getStoreId());
        $this->setSenderMail($result);
        $this->message->setFrom($result['email'], $result['name']);
        
        return $this;
    }
public function setFrom($from)
    {
	$result = $this->_senderResolver->resolve($from, $this->getStoreId());
        $this->setSenderMail($result);
        $this->message->setFrom($result['email'], $result['name']);
        
        return $this;
    }
public function setFrom ( $ from ) { $ result = $ this -> _senderResolver -> resolve ( $ from , $ this -> getStoreId ( ) ) ; $ this -> setSenderMail ( $ result ) ; $ this -> message -> setFrom ( $ result [ 'email' ] , $ result [ 'name' ] ) ; return $ this ; }
Set mail from address

@param string|array $from
@return $this
@throws \Magento\Framework\Exception\MailException
Set mail from address