5

I want to retrieve store-email in phtml file so far i've fetched store data information like this but there's no info about e-mail address:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$storeInformation = $objectManager->create('Magento\Store\Model\Information');
$store = $objectManager->create('Magento\Store\Model\Store');
$storeInfo = $storeInformation->getStoreInformationObject($store); 
$storeData = $storeInfo->getData();
Qaisar Satti
  • 32,469
  • 18
  • 85
  • 137
Shell Suite
  • 1,702
  • 5
  • 22
  • 36

1 Answers1

6

Tested and working

$objectManager =  \Magento\Framework\App\ObjectManager::getInstance();        


echo $conf = $objectManager->get('Magento\Framework\App\Config\ScopeConfigInterface')->getValue('trans_email/ident_general/email');

Output owner@example.com

Qaisar Satti
  • 32,469
  • 18
  • 85
  • 137