Magento

How to get magento store email address and name in my custom module?

Pinterest LinkedIn Tumblr

How To retrive store sender name and email address : you can check below code

General Contact

    /* Sender Name */
    Mage::getStoreConfig('trans_email/ident_general/name'); 
    /* Sender Email */
    Mage::getStoreConfig('trans_email/ident_general/email');

Sales Representative

    /* Sender Name */
    Mage::getStoreConfig('trans_email/ident_sales/name'); 
    /* Sender Email */
    Mage::getStoreConfig('trans_email/ident_sales/email');

Customer Support

    /* Sender Name */
    Mage::getStoreConfig('trans_email/ident_support/name'); 
    /* Sender Email */
    Mage::getStoreConfig('trans_email/ident_support/email');

Custom Email 1

    /* Sender Name */
    Mage::getStoreConfig('trans_email/ident_custom1/name'); 
    /* Sender Email */
    Mage::getStoreConfig('trans_email/ident_custom1/email');

Custom Email 2

    /* Sender Name */
    Mage::getStoreConfig('trans_email/ident_custom2/name'); 
    /* Sender Email */
    Mage::getStoreConfig('trans_email/ident_custom2/email');

Write A Comment