Magento get store admin email address and name
If you want to get admin email address or store email address that is set in magento backend, you can get as following.
General Contact
Sales Representative
Customer Support
Custom Email 1
Custom Email 2
General Contact
/* Name */ Mage::getStoreConfig('trans_email/ident_general/name'); /* Email */ Mage::getStoreConfig('trans_email/ident_general/email');
Sales Representative
/* Name */ Mage::getStoreConfig('trans_email/ident_sales/name'); /* Email */ Mage::getStoreConfig('trans_email/ident_sales/email');
Customer Support
/* Name */ Mage::getStoreConfig('trans_email/ident_support/name'); /* Email */ Mage::getStoreConfig('trans_email/ident_support/email');
Custom Email 1
/* Name */ Mage::getStoreConfig('trans_email/ident_custom1/name'); /* Email */ Mage::getStoreConfig('trans_email/ident_custom1/email');
Custom Email 2
/* Name */ Mage::getStoreConfig('trans_email/ident_custom2/name'); /* Email */ Mage::getStoreConfig('trans_email/ident_custom2/email');
Please support us, Like us on Facebook.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment