Changing sender's email address in Magento

Changing sender's email address in Magento

October 16, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Changing sender's email address in Magento

Changing the Sender Email Address in Magento

As you look to customize your Magento store’s communication settings, changing the sender email address is a common requirement. By default, Magento sends emails from an address associated with your hosting provider, such as abccompany@bluehost.com. However, for professional branding purposes and improved customer trust, it’s crucial to change this to match your company domain, like support@abccompany.com.

Understanding the Email Configuration in Magento

Magento uses the sendTransactional method in the core Mage_Core_Model_Email_Template_Abstract class to dispatch emails. This method is responsible for preparing and sending transactional emails like new account confirmation, order details, and password reset notifications.

To change the sender email address, you’ll need to override this core functionality. The recommended approach is to create a custom module that extends the sendTransactional method with your desired changes.

Creating a Custom Module

First, let’s create a new directory structure for our custom module:

/app/code/local/Abc/EmailChange
    /etc
        config.xml
    /controllers
        IndexController.php
    /Model
        Observer.php
    /etc/modules
        Abc_EmailChange.xml

// Include the following files in your etc/config.xml file:
<config>
  <modules>
    <Abc_EmailChange>
      <version>1.0.0</version>
    </Abc_EmailChange>
  </modules>
  <global>
    <models>
      <abc_emailchange>
        <class>Abc_EmailChange_Model</class>
      </abc_emailchange>
    </models>
    <events>
      <controller_action_predispatch_front_sendemail>
        <observers>
          <abc_emailchange>
            <type>singleton</type>
            <class>abc_emailchange/observer</class>
            <method>changeSenderEmail</method>
          </abc_emailchange>
        </observers>
      </controller_action_predispatch_front_sendemail>
    </events>
  </global>
</config>

// Now, add the following content to your Model/Observer.php file:

<?php
class Abc_EmailChange_Model_Observer
{
  public function changeSenderEmail($observer)
  {
    $event = $observer->getEvent();
    $transport = $event->getTransport();

    // Change sender email address
    $transport->setFromEmail('support@abccompany.com');
    $transport->setFromName('Abc Company Support');

    return $this;
  }
}

// Next, you need to enable your module in the config:

// Navigate to System > Configuration > Advanced > Disable Modules Output
// Find and select the following core modules:
// - Mage_Core_Email_Session
// - Mage_Core_Model_Email_Template

**Conclusion**

Changing the sender email address in Magento is a straightforward process that involves creating a custom module and overriding the core `sendTransactional` method. By following this approach, you can ensure that all transactional emails sent from your store will use the desired domain name for better branding and customer trust.

Remember to test your changes thoroughly after implementation. You can find more detailed guides on Magento customization at [Laravel Company's Magento Development Services page](https://laravelcompany.com/magento/).

This concludes our guide on changing the sender email address in Magento. If you have any further questions or need assistance with advanced Magento configurations, feel free to reach out to our expert team at Laravel Company.
Security Extensions Themes Configuration

Our network