cancel
Showing results for 
Search instead for 
Did you mean: 

Get Store email addresses programmatically

SOLVED

Re: Get Store email addresses programmatically

@tippanna_pawar 

 

Resolved this error by this piece of code :

 

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$scopeConfig = $objectManager->create('\Magento\Framework\App\Config\ScopeConfigInterface');
$email = $scopeConfig->getValue('trans_email/ident_support/email',\Magento\Store\Model\ScopeInterface::SCOPE_STORE);
Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Get Store email addresses programmatically

Thank you brother it worked for me.