How to get store admin email address and name in Magento?

magento
How to get store admin email address and name in Magento?

In Magento, if you need to use the admin’s email address or name and both. You can use the following code to get the admin’s email and name:

$from_email = Mage::getStoreConfig('trans_email/ident_general/email'); //fetch sender email Admin
$from_name = Mage::getStoreConfig('trans_email/ident_general/name'); //fetch sender name Admin

 

Like to share it

No comments

Leave a Reply

Your email address will not be published. Required fields are marked *